astromodels.core.property module

class astromodels.core.property.FunctionProperty(name: str, desc: str, value: str | None = None, allowed_values: List[Any] | None = None, defer: bool = False, eval_func: str | None = None)[source]

Bases: PropertyBase

class astromodels.core.property.PropertyBase(name: str, desc: str, value: str | None = None, allowed_values: List[str] | None = None, defer: bool = False, eval_func: str | None = None)[source]

Bases: Node

property description: str | None

Return a description of this parameter

Returns:

a string cointaining a description of the meaning of this parameter

duplicate() FunctionProperty[source]

Returns an exact copy of the current property

property is_deferred: bool
to_dict(minimal=False) Dict[str, Any][source]

Returns the representation for serialization

property value: Any

Get and sets the current value for the property

exception astromodels.core.property.SettingUnknownValue[source]

Bases: RuntimeError