NASA-IMPACT / pyQuARC

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
19 stars 0 forks source link

Fix dependencies bug #154

Closed slesaad closed 3 years ago

slesaad commented 3 years ago

Motivation The dependencies that are based on fields (not just checks) are not generic to all the checks. They change based on the fields supplied to the check. Thus, it doesn't work if it lives in checks.json (where it currently is).

The solution is to move those to rule_mapping.json where the users can add such dependencies based on the fields that are supplied.

Repercussions Users now will have to add these kind of field based dependencies in the rule_mapping.json file/override by themselves.

xhagrg commented 3 years ago

@slesaad we will also need to update the readme file to reflect the changes regarding dependencies. This will allow people to write their own rules easily (without further modification of core implementation)