Open Epta13 opened 5 months ago
It looks like it has someting to do with the plots. The color maps are created without any problem, and the tiffs are saved as well. But any operation involving the plot creation results in this error.
I'm aware of the issue which is very hard to track. I tried to fix this by just "avoiding" the issue in 7b0b554. Let me know if you still encounter this sort of issues.
From time to time, I get this method error in the Create index maps or save index maps in the SpectralIndices:
TypeError Traceback (most recent call last) File ~.conda\envs\sediment\lib\site-packages\napari_sediment\spectral_indices_widget.py:799, in SpectralIndexWidget._on_click_create_and_save_all_plots(self=, event=False)
797 def _on_click_create_and_save_all_plots(self, event=None):
798 self.current_plot_type = 'single'
--> 799 self.disconnect_plot_formatting()
self = <napari_sediment.spectral_indices_widget.SpectralIndexWidget object at 0x000002591B8B4700>
800 self.set_plot_interface(params=self.params_plots)
801 self.create_and_save_all_single_index_plot(event=event)
File ~.conda\envs\sediment\lib\site-packages\napari_sediment\spectral_indices_widget.py:750, in SpectralIndexWidget.disconnect_plot_formatting(self=)
746 def disconnect_plot_formatting(self):
747 """Disconnect plot editing widgets while loading parameters to avoid overwriting
748 the loaded parameters."""
--> 750 self.spin_plot_thickness.valueChanged.disconnect(self.update_single_or_multi_index_plot)
self = <napari_sediment.spectral_indices_widget.SpectralIndexWidget object at 0x000002591B8B4700>
self.spin_plot_thickness = <PyQt5.QtWidgets.QDoubleSpinBox object at 0x0000025924DD9EE0>
751 self.spin_title_font.valueChanged.disconnect(self.update_single_or_multi_index_plot)
752 self.spin_label_font.valueChanged.disconnect(self.update_single_or_multi_index_plot)
TypeError: 'method' object is not connected
I can't so far reporoduce what combination of activites creates this.