ViniciusDamiati / ntv

Automatically exported from code.google.com/p/ntv
0 stars 0 forks source link

Clicking Pick Star Twice gives bonus and errors #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Click "Pick Star" twice
2. Maybe: click open space, no object
3.

What is the expected output? What do you see instead?
It allows you to open a "Details" box without hitting "Pick Star" again

What version of the product are you using? On what operating system?
1.1

Please provide any additional information below.
Here's the copy/paste from my debug log.

In "Pick Star" mode, we should be able to move the red and green lines to
resize.  
Even if we have to type in a new value for it, the mode is set up to see
the photometry well.
But, if there was a blip in the annulus, it would be nice to slide the red
lines around to miss it.
Use 

If I hit the "Pick Star" button twice on accident, then if continues to
open 2 "

******************NEW*********************************
If you hit Pick Star twice and then select a star/object:
It opens 2 boxes, the second when the first closes.

BUT:  then whenever you click on the picture EVER, it opens a box (kind of
handy)
BUT:  A list of errors flag:

-- i think the error MIGHT be coming when i grab a box where the is no star, 
or just because I am cheating having it give me a box without clicking
"pick star" (which is kind of handy)

jinlu@Piscan ~/Research/Nate.Lust $ ntv test.FIT 
Warning: Number of calls to function has reached maxfev = 1200.
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/matplotlib/backends/backend_qt4agg.py",
line 65, in resizeEvent
    FigureCanvasQT.resizeEvent( self, e )
  File
"/usr/lib/python2.6/site-packages/matplotlib/backends/backend_qt4.py", line
158, in resizeEvent
    self.draw()
  File
"/usr/lib/python2.6/site-packages/matplotlib/backends/backend_qt4agg.py",
line 133, in draw
    FigureCanvasAgg.draw(self)
  File
"/usr/lib/python2.6/site-packages/matplotlib/backends/backend_agg.py", line
279, in draw
    self.figure.draw(self.renderer)
  File "/usr/lib/python2.6/site-packages/matplotlib/figure.py", line 772,
in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.6/site-packages/matplotlib/axes.py", line 1556, in
draw
    im.draw(renderer)
  File "/usr/lib/python2.6/site-packages/matplotlib/image.py", line 233, in
draw
    im = self.make_image(renderer.get_image_magnification())
  File "/usr/lib/python2.6/site-packages/matplotlib/image.py", line 221, in
make_image
    ry = heightDisplay  / numrows
ZeroDivisionError: float division

****2nd flag, same error****
Traceback (most recent call last):
  File
"/usr/lib/python2.6/site-packages/matplotlib/backends/backend_qt4agg.py",
line 86, in paintEvent
    FigureCanvasAgg.draw(self)
  File
"/usr/lib/python2.6/site-packages/matplotlib/backends/backend_agg.py", line
279, in draw
    self.figure.draw(self.renderer)
  File "/usr/lib/python2.6/site-packages/matplotlib/figure.py", line 772,
in draw
    for a in self.axes: a.draw(renderer)
  File "/usr/lib/python2.6/site-packages/matplotlib/axes.py", line 1556, in
draw
    im.draw(renderer)
  File "/usr/lib/python2.6/site-packages/matplotlib/image.py", line 233, in
draw
    im = self.make_image(renderer.get_image_magnification())
  File "/usr/lib/python2.6/site-packages/matplotlib/image.py", line 221, in
make_image
    ry = heightDisplay  / numrows
ZeroDivisionError: float division

Original issue reported on code.google.com by JDFra...@gmail.com on 20 Sep 2009 at 5:09

GoogleCodeExporter commented 9 years ago
multiple button press issue has been fixed, the button connection was not being
properly cleared with a second press. testing here fixed, please test on your 
end.
The float division error in generating a plot should be fixed now as well. It 
was an
error when fitgaussian failed, there is a check and work around for that

Original comment by Geek....@gmail.com on 20 Sep 2009 at 10:02

GoogleCodeExporter commented 9 years ago
implemented the feature where the user can select aperture and annulus 
placement by
dragging the vertical lines

Original comment by Geek....@gmail.com on 22 Sep 2009 at 11:12