jlopezalo / PyFMGUI

PyFMGUI is an application for the analysis of force microscopy data capable of analyzing Nanoscope and JPK AFM files.
10 stars 3 forks source link

bug after fresh install #13

Open julienderr opened 4 months ago

julienderr commented 4 months ago

I followed the instructions by creating a fresh conda env but then running the script does not work .... any ideas why ?

thanks!

python3 src/main.py Traceback (most recent call last): File "/home/julien/ownCloud/recherche/Simone/pyfmgui/PyFMGUI/src/main.py", line 14, in from pyfmgui.main_window import MainWindow File "/home/julien/ownCloud/recherche/Simone/pyfmgui/PyFMGUI/src/pyfmgui/main_window.py", line 10, in from pyfmgui.const import pyFM_VERSION File "/home/julien/ownCloud/recherche/Simone/pyfmgui/PyFMGUI/src/pyfmgui/const.py", line 322, in thermaltune_params = [ambient_params, CantileverParams(name='Cantilever Params'), sader_method_params] File "/home/julien/ownCloud/recherche/Simone/pyfmgui/PyFMGUI/src/pyfmgui/const.py", line 277, in init self.canti_id_changed() File "/home/julien/ownCloud/recherche/Simone/pyfmgui/PyFMGUI/src/pyfmgui/const.py", line 281, in canti_id_changed self.param('Canti Shape').setValue(canti_data['cantType']) TypeError: 'NoneType' object is not subscriptable

felixrico commented 4 months ago

Hi Julien, The dirty way of avoiding this bug after a fresh install is to comment out line 322 in the const.py. This shouldn't affect the rest of the functionality of the GUI, except for the thermal tune module. in order to access the dataviewer widget, without error the dirty way to do it is to comment out cmap input in line 65 of dataviewer_widget.py in widget's folder.

self.bar = pg.ColorBarItem(interactive=False, values=(0,0), width=25)#, cmap=colorMap)

Another option is this is the stable version of the code that might be easier: https://github.com/DyNaMo-INSERM/PyFMGUI_DyNaMo.git Please, let us know if it works. Thank you for your interest. Best, Felix