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

Remove stdout when Importing pyQuARC #162

Closed cgokey closed 2 years ago

cgokey commented 2 years ago

Describe the bug When importing the pyQuARC package, we are seeing messages sent to stdout. Any imports, function calls, should not produce stdout if possible, as Dashboard has a python script that imports pyQuARC and sends it results to stdout that rails parses. So these stdout messaged produces by pyQuARC are interfering.

To Reproduce

>>> from pyQuARC import ARC
Downloading granuledataformat file from GCMD ...
Downloading instruments file from GCMD ...
Downloading locations file from GCMD ...
Downloading platforms file from GCMD ...
Downloading projects file from GCMD ...
Downloading providers file from GCMD ...
Downloading rucontenttype file from GCMD ...
Downloading sciencekeywords file from GCMD ...

Expected behavior These stdout messages should be silenced or configurable.