Opened 7 years ago

Closed 6 years ago

#1686 closed defect (fixed)

WCST_Import Support silence option

Reported by: Bang Pham Huu Owned by: Bang Pham Huu
Priority: major Milestone: 9.6
Component: wcst_import Version: development
Keywords: Cc: Dimitar Misev, Vlad Merticariu
Complexity: Easy

Description

Don't show the progress bar from wcst_import.sh, suggestion is wcst_import.sh can add input parameter (-q | —quiet)

e,g.: wcst_import.sh -q ingredient_file
then it will run python wcst_import.py ingredient_file 2>&1 > /dev/null

Change History (5)

comment:1 by Bang Pham Huu, 7 years ago

Milestone: 10.09.6
Resolution: fixed
Status: newclosed

comment:2 by Dimitar Misev, 6 years ago

Resolution: fixed
Status: closedreopened

wcst_import.sh -q should not suppress error messages, only stdout messages.

comment:3 by Dimitar Misev, 6 years ago

Owner: set to Bang Pham Huu
Status: reopenedassigned

comment:4 by Dimitar Misev, 6 years ago

E.g. wcst_import.sh -q I get no output, but without -q I get a python traceback like this:

Traceback (most recent call last):
...
  File "/home/dimitar/rasdaman/community/src-install/share/rasdaman/wcst_import/recipes/general_coverage/pp_grib_to_coverage_converter.py", line 24, in <module>
    import pygrib
ImportError: No module named pygrib

Such an error should always be printed, even with -q.

comment:5 by Bang Pham Huu, 6 years ago

Resolution: fixed
Status: assignedclosed

You should use the newest WCST_Import to test!

wcst_import.sh -q ingest.json 
No direct positions found for irregular axis, assuming slice.
Runtime error: Cannot import GRIB data, please install pygrib first (sudo pip install pygrib).

Note: See TracTickets for help on using tickets.