check_file

giant.catalogues.ucac:

giant.catalogues.ucac.check_file(file, md5s=None)[source]

This checks the md5sum of a file to ensure it wasn’t corrupted.

Warning

This function can only verify the integrity of the files through md5 sums which are insecure. While the vizier service is trusted, use this function at your own risk

Parameters:
  • file (Path) – The file to check the md5 of

  • md5s (dict | None) – A dictionary containing the md5 sums for each file

Returns:

a flag specifying if the file was correct and the dictionary of md5 sums used to check the file

Return type:

Tuple[bool, dict | None]