ratt-ru / meqtrees

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

Mouse middle button does not work any more #105

Closed gijzelaerr closed 10 years ago

gijzelaerr commented 10 years ago
at 2005-03-16 11:38:16 Jan Noordam reported:

Mouse middle button does not work any more

gijzelaerr commented 10 years ago

Original comment thread migrated from bugzilla

at 2005-03-16 11:38:16 Jan Noordam replied:

When I press the middle button to see a cross-section, I get:

Moreover, if I press the left button, I get:

at 2005-03-16 11:43:24 Oleg Smirnov replied:

Tony did an update recently, that must've broken it. Reassigning to him. You can try rolling back to an earlier version with

cd LOFAR/Timba/PyApps cvs up -D "16 Mar" (or maybe 15 Mar)

at 2005-03-16 14:52:52 Tony Willis replied:

Hum

I just deleted all python code in PyApps/src and PyApps/src/Plugins, then did a 'cvs up' in PyApps/src. I then loaded a spectrum array, and successfully used the middle mouse button to produce cross sections. Possibly you have a code inconsistency somewhere?

at 2005-03-16 16:39:02 Jan Noordam replied:

No, Jan's source is completely up-to-date with cvs right now, and it still doesn't work. Are you sure everything's checked in? Tony, try to sync your other packages to see if maybe something else is breaking the plotter.

at 2005-03-16 20:00:43 Tony Willis replied:

I cannot reproduce this bug.

1) I logged into lofar9 and ran the browser with my current python code. No problem with left, middle or right mouse buttons when interacting with images. Histogram plot also worked, so there is no problem with version of numarray on lofar9.

2) I deleted my current LOFAR/Timba system and did a complete new 'cvs co' of LOFAR/Timba, followed by a complete system rebuild.

3) I then repeated 1) with same result.

So, Oleg, as the next step I can only suggest a 'virgin' build of Jan's system.

Cheers

Tony

at 2005-03-16 20:24:35 Tony Willis replied:

Ah-Ha!

OK -now I see it. It has something to do with visualization of the 'flags' arrays. When I said I couldn't see the bug I was just looking at regular arrays.

at 2005-03-16 20:41:29 Tony Willis replied:

Fixed

There is a 'self._plot_type' variable in display_image.py which was not being given a default instantiation, but the system was testing if we had a 'histogram' plot type in order to suppress mouse interaction with the histogram at the moment.