pyqtgraph version
during review of the JOSS paper, one of the reviewer found the following error:
2024-04-25 08:11:01,169 - insarviz.ts_viz - INFO - loading None
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "C:\Users\simon.proud\Anaconda3\envs\main\envs\insarviz-env\Scripts\ts_viz.exe__main__.py", line 7, in
File "C:\Users\simon.proud\Anaconda3\envs\main\envs\insarviz-env\Lib\site-packages\insarviz\ts_viz.py", line 724, in main ex = MainWindow(filename=args.i, ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\simon.proud\Anaconda3\envs\main\envs\insarviz-env\Lib\site-packages\insarviz\ts_viz.py", line 54, in init self.initUI(filename)
File "C:\Users\simon.proud\Anaconda3\envs\main\envs\insarviz-env\Lib\site-packages\insarviz\ts_viz.py", line 96, in initUI self.palette_widget = Palette(self.map_widget, self.minimap_widget) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\simon.proud\Anaconda3\envs\main\envs\insarviz-env\Lib\site-packages\insarviz\PaletteView.py", line 25, in init
self._add_custom_gradients()
File "C:\Users\simon.proud\Anaconda3\envs\main\envs\insarviz-env\Lib\site-packages\insarviz\PaletteView.py", line 143, in _add_custom_gradients
act.triggered.connect(self.gradient.contextMenuClicked) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'GradientEditorItem' object has no attribute 'contextMenuClicked'. Did you mean: 'colorMapMenuClicked'?
Their comment was:
Tracing the error back, it seems that contextMenuClicked was replaced by colorMapMenuClicked in version 0.13.5 of pyqtgraph. When I downgrade pyqtgraph to version 0.13.4 then the InsarViz interface loads. So you will either have to update your code for the new function name or you'll have to pin that library to an older version in the requirements.
for now, I pinned the pyqtgraph version to 0.13.4, but the code will need to be changed in the future (and pinned version updated)