Conf¶
-
class
specutils.Conf[source]¶ Bases:
astropy.config.ConfigNamespaceConfiguration parameters for specutils.
Attributes Summary
Whether to check the spectrum baseline value is closeto zero.
Methods Summary
reload(self[, attr])Reload a configuration item from the configuration file.
reset(self[, attr])Reset a configuration item to its default.
set_temp(self, attr, value)Temporarily set a configuration value.
Attributes Documentation
-
do_continuum_function_check¶ Whether to check the spectrum baseline value is closeto zero. If it is not within
thresholdthen a warning is raised.
Methods Documentation
-
reload(self, attr=None)¶ Reload a configuration item from the configuration file.
- Parameters
- attrstr, optional
The name of the configuration parameter to reload. If not provided, reload all configuration parameters.
-
reset(self, attr=None)¶ Reset a configuration item to its default.
- Parameters
- attrstr, optional
The name of the configuration parameter to reload. If not provided, reset all configuration parameters.
-
set_temp(self, attr, value)¶ Temporarily set a configuration value.
- Parameters
- attrstr
Configuration item name
- valueobject
The value to set temporarily.
Examples
>>> import astropy >>> with astropy.conf.set_temp('use_color', False): ... pass ... # console output will not contain color >>> # console output contains color again...
-