do_auto_updates
- do_auto_updates(configDict, logger=None, verbose=None)[source]
Use measurespath, data_auto_update, and measures_auto_update from configDict to do any auto updates as necessary.
This is intended for use during casatools init but may be useful in other cases.
Note that the IERS measures data is usually read when casatools starts and so changes made to that table may not be seen until a new session if this function is used outside of casatools initialization.
measurespath must be set (not None).
measures_auto_update must be True when data_auto_update is True.
See the documentation for data_update and measures_update for additional details about the auto update rules.
The verbose argument controls the level of information provided when this function when the data are unchanged for expected reasons. A level of 0 prints and logs nothing. A value of 1 logs the information and a value of 2 logs and prints the information.
See data_update and measures_update for additional details about exceptions
- Paramters
configDict (dict) - A config dictionary previously set.
logger (casatools.logsink=None) - Instance of the casalogger to use for writing messages. Default None writes messages to the terminal.
verbose (int) - Level of output, 0 is none, 1 is to logger, 2 is to logger and terminal, defaults to casaconfig_verbose in the config dictionary.
- Returns
None
- Raises
casaconfig.UnsetMeasurespath - raised when measurespath is None in config