lstark-uibk / Manual_Pyeakfitter

Other
1 stars 0 forks source link

_redraw_vline error #51

Open lstark-uibk opened 5 months ago

lstark-uibk commented 5 months ago

Try to read in Masslist data from C:/Users/Umwelt/PycharmProjects/Manual_Pyeakfitter/masslist_test.csv jump to mass: 415.42807 jump to mass: 413.409454 because there is a new mass make new local fit recalculate local fit Make a new local fit silent error <class 'TypeError'> only integer scalar arrays can be converted to a scalar index <traceback object at 0x000001F37DE99500> Traceback (most recent call last): File "C:\Users\Umwelt\PycharmProjects\Manual_Pyeakfitter\manual_pyeakfitter.py", line 281, in self.vb.sigXRangeChanged.connect(lambda: self.on_xlims_changed(self.vb)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Umwelt\PycharmProjects\Manual_Pyeakfitter\manual_pyeakfitter.py", line 301, in on_xlims_changed pyqtgraph_objects.redraw_vlines(self, xlims) File "C:\Users\Umwelt\PycharmProjects\Manual_Pyeakfitter\workflows\pyqtgraph_objects.py", line 64, in redraw_vlines _redraw_vline(parent, xlims, type = "mass") File "C:\Users\Umwelt\PycharmProjects\Manual_Pyeakfitter\workflows\pyqtgraph_objects.py", line 34, in _redraw_vline compound_name = massisosugg.compound_names[massisosugg.masses == mass]


TypeError: only integer scalar arrays can be converted to a scalar index