Skip to content

Commit

Permalink
added possibility to suppress warnings in rt processing
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfidan committed Jun 8, 2023
1 parent b74e3a8 commit e48ef9e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pyrad_proc/scripts/main_process_data_rt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ def main():
parser.add_argument(
'--proc_finish', type=int, default=None,
help='Processing time allowed before shutdown (s)')
parser.add_argument(
'--hide_warnings', type=int, default=0,
help='Disables warnings shown during pyrad processing')


args = parser.parse_args()

Expand Down Expand Up @@ -117,7 +121,8 @@ def main():
try:
end_proc = pyrad_main(
cfgfile_list, starttime=proc_starttime, endtime=proc_endtime,
proc_period=args.proc_period, proc_finish=args.proc_finish)
proc_period=args.proc_period, proc_finish=args.proc_finish,
hide_warning=args.hide_warnings)
except Exception:
traceback.print_exc()
if args.proc_finish is None:
Expand Down

0 comments on commit e48ef9e

Please sign in to comment.