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,
'RTOL': 2.2204460492503131e-16,
'TEMPDIR': '/tmp'}
>>> cf.CONSTANTS['MINNCFM'] = 15
>>> cf.CONSTANTS['TEMPDIR'] = '/home/me/tmp'
>>> cf.CHUNKSIZE(2**30)
>>> cf.CONSTANTS['CHUNKSIZE']
1073741824
>>> cf.CONSTANTS['FM_THRESHOLD']
10485760.0