class sherpa.astro.xspec.utils.ModelMeta(*args, **kwargs)[source] [edit on github]

Bases: type

Metaclass for xspec models. The __function__ member in xspec model classes is seamlessly transformed from a string representing the low level function in the sherpa xspec extension into a proper call, taking into account error cases (e.g. the function cannot be found in the xspec extension at runtime).

Attributes Summary


Methods Summary


Return a type's method resolution order.

Attributes Documentation

NOT_COMPILED_FUNCTION_MESSAGE = 'Calling an xspec function that was not compiled'

Methods Documentation


Return a type’s method resolution order.