bundles / astropy 7.0.1 / astropy / config / configuration / ConfigItem / set_temp
function
astropy.config.configuration:ConfigItem.set_temp
source: /astropy/config/configuration.py :367
Signature
def set_temp ( self , value ) Summary
Sets this item to a specified value only inside a with block.
Extended Summary
Use as
ITEM = ConfigItem('ITEM', 'default', 'description') with ITEM.set_temp('newval'): #... do something that wants ITEM's value to be 'newval' ... print(ITEM) # ITEM is now 'default' after the with block
Parameters
valueThe value to set this item to inside the with block.
Aliases
-
astropy.config.ConfigItem.set_temp