A dictionary of useful constants.
Whilst the dictionary may be modified directly, it is safer to retrieve and set the values with a function where one is provided. This is due to interdependencies between some values.
Keys : |
|
---|
Examples
>>> cf.CONSTANTS
{'ATOL': 2.2204460492503131e-16,
'CHUNKSIZE': 104857600,
'FM_THRESHOLD': 1024000.0,
'MINNCFM': 10,
'OF_FRACTION': 0.5,
'RTOL': 2.2204460492503131e-16,
'TEMPDIR': '/tmp'}
>>> cf.TEMPDIR('/home/me/tmp')
>>> cf.CONSTANTS['MINNCFM'] = 15
>>> cf.CHUNKSIZE(1073741824)
>>> cf.CONSTANTS
{'ATOL': 2.2204460492503131e-16,
'CHUNKSIZE': 1073741824,
'FM_THRESHOLD': 15728640.0,
'MINNCFM': 15,
'OF_FRACTION': 0.5,
'RTOL': 2.2204460492503131e-16,
'TEMPDIR': '/home/me/tmp'}