ejeschke / ginga

The Ginga astronomical FITS file viewer
BSD 3-Clause "New" or "Revised" License
122 stars 77 forks source link

Custom plugin and traceback from Control.py #151

Closed pllim closed 9 years ago

pllim commented 9 years ago

I have my own local plugins that do not use the "new type" drawing behavior nor any new features that were recently added, and I see the following traceback when I load them with the latest dev version of Ginga (did not see this 2 weeks ago):

2015-08-18 12:47:54,261 | E | Callback.py:88 (make_callback) | Error making callback 'motion': 'NoneType' object has no attribute 'readout'
2015-08-18 12:47:54,261 | E | Callback.py:89 (make_callback) | Traceback:
  File ".../ginga-2.4.20150813235710-py2.7.egg/ginga/misc/Callback.py", line 72, in make_callback
    res = method(*cb_args, **cb_kwdargs)

  File ".../ginga-2.4.20150813235710-py2.7.egg/ginga/Control.py", line 337, in cbar_value_cb
    readout = chinfo.readout

This does not make sense to me. Does that mean now I have to use the "new type" drawing behavior? Any ideas would be appreciated. Thanks!

pllim commented 9 years ago

Okay, that's weird. It went away and I cannot reproduce it. Never mind!

ejeschke commented 9 years ago

Hi @pllim, this error would have nothing to do with the drawing additions. Looks due to a change I made a couple days ago to the Readout the small black bar that shows the information as you mouse around the image. I'll take a look near the code referenced. Thanks for filing this!

ejeschke commented 9 years ago

Please reopen if you notice this again. Tnx.