lofar-astron / RMextract

extract TEC, vTEC, Earthmagnetic field and Rotation Measures from GPS and WMM data for radio interferometry observations
GNU General Public License v3.0
31 stars 22 forks source link

logging problem? #19

Closed revoltek closed 2 months ago

revoltek commented 5 years ago

The code works fine, just when I run it I get this unclear error at the beginning:

.:[fdg]:. @ lofar3:~/data2/bootes/obs1/cals$ createRMh5parm.py 3c196_t1800_SB186.MS 3c196_t1800_SB186.MS/rme.h5 pyrap will be used to compute positions Traceback (most recent call last): File "/usr/lib64/python2.7/logging/init.py", line 851, in emit msg = self.format(record) File "/usr/lib64/python2.7/logging/init.py", line 724, in format return fmt.format(record) File "/usr/lib64/python2.7/logging/init.py", line 464, in format record.message = record.getMessage() File "/usr/lib64/python2.7/logging/init.py", line 328, in getMessage msg = msg % self.args TypeError: not all arguments converted during string formatting Logged from file createRMh5parm.py, line 153

tikk3r commented 5 years ago

Just ran into this myself as well (with my own scripts), so I thought I'd mention it here. It happened to me when using the .format() syntax instead of the old % syntax (see also https://code.i-harness.com/en/q/c3f85b) or when I forgot a format string somewhere e.g. logger.debug('Something here without format string', argument). I don't see any of that in createRMh5parm.py though, so maybe an object that has no representation in one of the format codes is passed (just guessing)?

gmloose commented 2 months ago

I guess this is no longer an issue. Last comment is almost 6 years old.