The pyQuARC tool reads and evaluates metadata records with a focus on the consistency and robustness of the metadata. pyQuARC flags opportunities to improve or add to contextual metadata information in order to help the user connect to relevant data products. pyQuARC also ensures that information common to both the data product and the file-level metadata are consistent and compatible. pyQuARC frees up human evaluators to make more sophisticated assessments such as whether an abstract accurately describes the data and provides the correct contextual information. The base pyQuARC package assesses descriptive metadata used to catalog Earth observation data products and files. As open source software, pyQuARC can be adapted and customized by data providers to allow for quality checks that evolve with their needs, including checking metadata not covered in base package.
Apache License 2.0
20
stars
1
forks
source link
Code breaks If Collection/DeleteTime is not in ISO Format #64
Describe the bug
In the Collection/DeleteTime field the following occurs:
If field is populated with an appropriate DateTime in ISO Format - the program returns true in the Datetime Format Check
if field is populated with nothing - the program does not apply the Datetime Format Check
If field includes anything other than a complete Datetime ISO format value - the program breaks with the errors:
"File "/Users/aweis/Desktop/ARC/revamped_pycmr-refactor-polish_code/code/datetime_validator.py", line 76, in delete_time_check
delete_time.replace(
AttributeError: 'bool' object has no attribute 'replace'"
To Reproduce
Steps to reproduce the behavior:
Add the Collection/DeleteTime to the test_cmr_metadata.echo10 record
Include any value other than a complete Datetime in ISO format
Run python3 main.py --fake true
See error
Expected behavior
If the metadata includes any value other than ISO format it should produce an error message with a FALSE result
Describe the bug In the Collection/DeleteTime field the following occurs:
"File "/Users/aweis/Desktop/ARC/revamped_pycmr-refactor-polish_code/code/datetime_validator.py", line 76, in delete_time_check delete_time.replace( AttributeError: 'bool' object has no attribute 'replace'"
To Reproduce Steps to reproduce the behavior:
Expected behavior If the metadata includes any value other than ISO format it should produce an error message with a FALSE result