keflavich / pyradex

Python interface to RADEX
BSD 3-Clause "New" or "Revised" License
18 stars 12 forks source link

Supress high optical depth warnings? #13

Open richteague opened 7 years ago

richteague commented 7 years ago

When I'm running grids I often run into regions of parameter space where I'll have high optical depths. The warnings that are output, "*** Warning: Some lines have very high optical depth", are drastically slowing down the script. Is there was a way to suppress such warnings?

keflavich commented 7 years ago

Those warnings come directly from RADEX in the matrix.f file: you'd have to hack the fortran to suppress it. Alternatively, we could redirect stdout to /dev/null. But those warnings should not have any effect on the speed of the execution, unless the terminal is slowing down your computer....