radis.params module

Default values for global Radis parameters

AUTO_UPDATE_SPEC = False[source]

experimental feature used to autoupdate .spec files to the latest format, by simply saving them again once they’re loaded and fixed. Warning! Better have a copy of your files before that, or a way to regenerate them.

Examples

Add to the top of your script (once is enough!):

import radis
radis.AUTO_UPDATE_SPEC = True

See also

_update_to_latest_format()

Type

bool

DEBUG_MODE = False[source]

change this at runtime with:

import radis
radis.DEBUG_MODE = True

Use the printdbg() function in radis.misc, typically with:

if __debug__: printdbg(...)

so that printdbg are removed by the Python preprocessor when running in optimize mode:

python -O *.py
Type

bool

GRIDPOINTS_PER_LINEWIDTH_ERROR_THRESHOLD = 1[source]

to determine the minimum feasible value of wstep using minimum FWHM value of spectrum. Makes sure there are enough gridpoints per line.

See also

_check_accuracy()

Type

float

GRIDPOINTS_PER_LINEWIDTH_WARN_THRESHOLD = 3[source]

to determine the optimal value of wstep using minimum FWHM value of spectrum. Makes sure there are enough gridpoints per line.

See also

_check_accuracy()

Type

float

OLDEST_COMPATIBLE_VERSION = '0.9.1'[source]

forces to regenerate cache files that were created in a previous version

Type

str

USE_CYTHON = True[source]

try to use Cython functions when possible

See also

add_at()

Type

bool