Bases: astropy.config.ConfigItem
A class that exists to support backward compatibility only.
This is an alias for a ConfigItem that has been moved elsewhere. It inherits from ConfigItem only because it implements the same interface, not because any of the methods are reused.
Parameters: | since : str
old_name : str
new_name : str
old_module : str, optional
new_module : str, optional
|
---|
Methods Summary
__call__() | Returns the value of this ConfigItem |
reload() | Reloads the value of this ConfigItem from the relevant configuration file. |
save([value]) | |
set(value) | Sets the current value of this ConfigItem. |
set_temp(value) | Sets this item to a specified value only inside a with block. |
Methods Documentation
Returns the value of this ConfigItem
Returns: | val
|
---|---|
Raises: | TypeError
|
Reloads the value of this ConfigItem from the relevant configuration file.
Returns: | val
|
---|
Sets the current value of this ConfigItem.
This also updates the comments that give the description and type information.
Parameters: | value
|
---|---|
Raises: | TypeError
|
Sets this item to a specified value only inside a with block.
ITEM = ConfigItem(‘ITEM’, ‘default’, ‘description’)
... do something that wants ITEM’s value to be ‘newval’ ...
# ITEM is now ‘default’ after the with block
Parameters: | value
|
---|