class sherpa.astro.xspec.utils.version_at_least(version_string)[source] [edit on github]

Bases: include_if

Decorator which takes a version string as an argument and enables a model only if the xspec version detected at runtime is equal or greater than the one provided to the decorator.

Attributes Summary


Methods Summary


Attributes Documentation

DISABLED_MODEL_MESSAGE = 'Model {} is disabled because XSPEC version >= {} is required'

Methods Documentation

get_message(model_class)[source] [edit on github]