lofar-astron / factor

Facet calibration for LOFAR
http://www.astron.nl/citt/facet-doc
GNU General Public License v2.0
19 stars 12 forks source link

Column angle is not allowed #229

Open amisk opened 5 years ago

amisk commented 5 years ago

Hi,

I was running factor, and I got. I did the initial subtract pipeline, and used a recent version of prefactor to do that ...

IOError: Column '<angle 62.22443559 deg>]'' is not currently allowed.

darafferty commented 5 years ago

Hmm -- this error seems to be coming from lsmtool (which is used to manipulate the sky models). Which versions of lsmtool and astropy are you using?

amisk commented 5 years ago

Hi, I use lsmtool 1.2.0 and astropy 2.0.7.

amisk commented 5 years ago

I also tried it in the recent docker container of the lofar software, this has losoto 2.0 and astropy 2.0.4, and I get the same error.

Maybe this comes into the ms through prefactor?

darafferty commented 4 years ago

OK, I finally managed to debug this problem. It turns out to be due to a bug in LSMTool, which I've now fixed in the latest version (v1.4.2). To pick up this fix, you need to rerun the initial subtract pipeline with the new version. However, you can also fix the problem without rerunning by simply editing the sky models that the initial subtract pipeline made as follows: in the first line (that starts with "FORMAT ="), replace the "Patch" entry (that looks something like Patch='[<Angle 126.1325 deg>, <Angle 64.3225 deg>]') with just Patch.