Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--silent is not silent #194

Open
alaniwi opened this issue Jan 10, 2022 · 1 comment
Open

--silent is not silent #194

alaniwi opened this issue Jan 10, 2022 · 1 comment

Comments

@alaniwi
Copy link
Contributor

alaniwi commented Jan 10, 2022

Publishing with --silent still produces a lot of output.

Example (with file paths edited):

$ esgpublish --silent --test -i /path/to/esg.ini --map /path/to/CMIP6.CMIP.MOHC.UKESM1-0-LL.historical.r1i1p1f2.AERmon.emidust.gn.v20190406.map --cert /path/to/certificate-file
Parameters:
  --files <string> ["/path/to/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/AERmon/emidust/gn/v20190406/*.nc"] 
  --in_json <string> [""] 
  --out_xml <string> [""] 
  --out_json <string> ["/tmp/tmp9w4tldez"] 
  --out_pretty <bool> [true] 
------------------------------------------------------------
Creating IndexedDataset.. Done
Populating IndexedDataset
Indexing /path/to/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/AERmon/emidust/gn/v20190406/emidust_AERmon_UKESM1-0-LL_historical_r1i1p1f2_gn_185001-194912.nc
..Loading dimensions
..Loading variables
Indexing /path/to/CMIP6/CMIP/MOHC/UKESM1-0-LL/historical/r1i1p1f2/AERmon/emidust/gn/v20190406/emidust_AERmon_UKESM1-0-LL_historical_r1i1p1f2_gn_195001-201412.nc
..Loading dimensions
..Loading variables

..WARNING: Variable "emidust" has inconsistentvalue of attribute "history" across files
..Done
Output to JSON file
.. Done
------------------------------------------------------------
@sashakames
Copy link
Contributor

It a misnomer as more accurately minimal verbosity
To make --silent (1) see if we can capture console output from the autocurator subprocess and suppress that.
(2) open an issue with CMOR to suppress PrePARE output. That is if its helpful for workflows to have bonafide "silent" operation.
Alternative, rename the option. --suppress-output is long

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants