pint.observatory.global_clock_corrections.update_all

pint.observatory.global_clock_corrections.update_all(export_to=None, download_policy='if_expired', url_base=None, url_mirrors=None)[source]

Download and update all clock corrections in the index.

You can also export them all to a directory.

This includes all the files in the repository, regardless of what PINT knows about them. (For example, the repository probably includes the file leap.sec but PINT does not use it.) If you want to download only the clock correction files that PINT uses, see pint.observatory.update_clock_files().

Parameters:
  • export_to (str or pathlib.Path, optional) – If provided, write all files to this directory.

  • download_policy (str) – Under what conditions to download a new file.

  • url_base (str, optional) – The location of the global repository. Useful for debugging.

  • url_mirrors (list of str, optional) – A list of places to look for the content. Useful for debugging.