Conf¶
-
class
astroquery.ukidss.Conf[source]¶ Bases:
astropy.config.configuration.ConfigNamespaceConfiguration parameters for
astroquery.ukidss.Attributes Summary
serverName of the UKIDSS mirror to use. timeoutTime limit for connecting to UKIDSS server. Methods Summary
reload([attr])Reload a configuration item from the configuration file. reset([attr])Reset a configuration item to its default. set_temp(attr, value)Temporarily set a configuration value. Attributes Documentation
-
server¶ Name of the UKIDSS mirror to use.
-
timeout¶ Time limit for connecting to UKIDSS server.
Methods Documentation
-
reload(attr=None)¶ Reload a configuration item from the configuration file.
Parameters: attr : str, optional
The name of the configuration parameter to reload. If not provided, reload all configuration parameters.
-
reset(attr=None)¶ Reset a configuration item to its default.
Parameters: attr : str, optional
The name of the configuration parameter to reload. If not provided, reset all configuration parameters.
-
set_temp(attr, value)¶ Temporarily set a configuration value.
Parameters: attr : str
Configuration item name
value : object
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...
-