Conf

class astroquery.vsa.Conf[source]

Bases: astropy.config.ConfigNamespace

Configuration parameters for astroquery.vsa.

Attributes Summary

server

Name of the VSA mirror to use

timeout

Time limit for connecting to VSA server.

Methods Summary

items()

Iterate over configuration item (name, value) pairs.

keys()

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.

values()

Iterate over configuration item values.

Attributes Documentation

server

Name of the VSA mirror to use

timeout

Time limit for connecting to VSA server.

Methods Documentation

items()

Iterate over configuration item (name, value) pairs.

keys()
reload(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(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(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...
values()

Iterate over configuration item values.