sherlockpipe.update.Updater
- class sherlockpipe.update.Updater(cache_dir='/home/docs/')
Bases:
objectThis class should be used to download SHERLOCK data as objects of interest, ELEANOR or LATTE metadata. It stores timestamps to remind when was the last time it updated and if called again, it could do nothing if it reads very recent operations.
- __init__(cache_dir='/home/docs/')
Methods
__init__([cache_dir])update(clean, ois, force)The main method of the update task.
- update(clean, ois, force)
The main method of the update task. Reloads OIs, ELEANOR and LATTE metadata.
- Parameters:
clean – Specifies whether the ELEANOR data should be wiped and downloaded again.
ois – Specifies whether the OIs metadata is the only one to be refreshed (ignoring ELEANOR and LATTE)
force – Specifies whether the last download timestamp should be ignored and proceed as if a refresh was needed.