Giter Club home page Giter Club logo

Comments (2)

kif avatar kif commented on June 2, 2024

On Fri, 08 Feb 2013 08:48:16 -0800
picca [email protected] wrote:

Hello, When I try to use pyFAI-calib with this

pyFAI-calib --spacing=CH_3.D CH_3.tiff

I get this:

INFO:TiffIO:Not closing not owned file
ERROR:pyFAI.peakPicker:ControlPoint.load: No such file CH_3.npt
INFO:pyFAI.peakPicker:Image size is (2048, 2048)
INFO:pyFAI.peakPicker:Binning size is [2, 2]
Please enter wavelength in Angstrom: INFO:pyFAI.peakPicker:Labeling found 15619 massifs.
INFO:pyFAI.peakPicker:Labeling found 15619 massifs.
1.7
INFO:root:Please use the GUI and Right-click on the peaks to mark them (center-click to erase last group)
Please press enter when you are happy; to fill in ring number
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1437, in call
return self.func(_args)
File "/usr/lib/pymodules/python2.7/matplotlib/backends/backend_tkagg.py", line 286, in button_press_event
FigureCanvasBase.button_press_event(self, x, y, num, guiEvent=event)
File "/usr/lib/pymodules/python2.7/matplotlib/backend_bases.py", line 1632, in button_press_event
self.callbacks.process(s, mouseevent)
File "/usr/lib/pymodules/python2.7/matplotlib/cbook.py", line 262, in process
proxy(_args, *_kwargs)
File "/usr/lib/pymodules/python2.7/matplotlib/cbook.py", line 192, in call
return mtd(_args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pyFAI/peakPicker.py", line 155, in onclick
a = self.points.pop()
File "/usr/lib/python2.7/dist-packages/pyFAI/peakPicker.py", line 366, in pop
self._angles.pop()
IndexError: pop from empty list

This is indeed a mis-behavour:
I guess you center clicked which is supposed to remove the last group on point entered, but there were no group of points...

I added a test to prevent this to show up in the future.

Thanks for the report, it is fixed in 3eaec24

Cheers,

Jérôme Kieffer [email protected]

from pyfai.

kif avatar kif commented on June 2, 2024

This bug has been fixed but in a clean way. I leave it like this until I find a better solution

from pyfai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.