ratt-ru / meqtrees

A library for implementing radio astronomical Measurement Equations
http://meqtrees.net
10 stars 2 forks source link

calibrate G diagonal terms spits out errors "can't access Array(double,1) as Array(int,2)" #827

Closed gijzelaerr closed 10 years ago

gijzelaerr commented 10 years ago
at 2011-09-23 11:28:42 Adriaan Peens-Hough reported:

calibrate G diagonal terms spits out errors "can't access Array(double,1) as Array(int,2)"

gijzelaerr commented 10 years ago

Original comment thread migrated from bugzilla

at 2011-09-23 11:28:42 Adriaan Peens-Hough replied:

reported error: "node 'sink:1:4': can't access Array(double,1) as Array(int,2) (while getting result for request ev.0.0.0.60.3)" (not just one, but thousands of them!)

steps to reproduce: while working through http://www.astron.nl/meqwiki- data/users ... l/purrlog/ 1) start mewbrowser 2) load calico-wsrt.py, compile, then "calibrate G diagonal terms" thousands of errors (as above) are logged by the time the calibration ends (many minutes on my system) the error occurs regardless of whether the inspector plots are open at the time or not.

system info: meqtrees 1.2 (sept 2011) on ubuntu 11.04 with python 2.7.1

at 2011-09-23 11:37:04 Oleg Smirnov replied:

Confirmed here, looks like I broke something in the release. (red faced)

Looks like we'll need a patch release shortly.

at 2011-09-23 13:43:57 Oleg Smirnov replied:

OK, I can see where I broke it, it has to do with the way flags are read and written. Should be a simple fix, but will need a patch release of meqtrees. For the time being, a simple workaround is to disable reading and writing of flags.

at 2011-09-23 14:44:48 Adriaan Peens-Hough replied:

great, thank you. i can confirm that it works if i leave out flags, which isn't all that important for me right now.

at 2011-09-28 12:54:21 Oleg Smirnov replied:

Created an attachment (id=79) Sink.cc fix

at 2011-09-28 12:54:49 Oleg Smirnov replied:

Attached fix Sink.cc

at 2011-10-04 17:01:35 Oleg Smirnov replied:

Fixed in r8477.