You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backtracking the source code of the mosaic plot in GUI/PeakSearchGUI.py and GUI/mosaic.py, I created a jupyter notebook (/data/bm32/inhouse/STAFF/SERGIOB/build_mosaic.ipynb) that should achieve the same thing. When executed with lauetoolsenv2, the error message reads
---------------------------------------------------------------------------UnboundLocalErrorTraceback (mostrecentcalllast)
CellIn[9], line1---->1CountersData=MOS.buildMosaic3(dict_param, os.getcwd(), parent=None, verbose=0)
File/mnt/multipath-shares/data/bm32/inhouse/lauetoolsenv2/lib/python3.8/site-packages/LaueTools/GUI/mosaic.py:2463, inbuildMosaic3(dict_param, outputfolder, ccdlabel, plot, parent, dictfittingparameters, verbose)
2454print("imin, imax, jmin, jmax", imin, imax, jmin, jmax)
2455# new fast way to read specific area in file directly2456datacrop=IOimage.readrectangle_in_image(filename,
2457xpic,
2458ypic,
2459halfboxsizes[0],
2460halfboxsizes[1],
2461dirname=None,
2462CCDLabel=ccdlabel,
->2463stackimageindex=stackimageindex)
2464#print('datacrop max --> ', np.amax(datacrop))2465else: # ends with("tif.gz")2467framedim=framedimrawUnboundLocalError: localvariable'stackimageindex'referencedbeforeassignment
However, in the current version of LaueTools on GitHub there is no input variable named stackimageindex!
Not only that, but in the docstring (the types are specified whereas in the repo they are not)
Notebook with laueenv
For reference, I report the minimal working example that I wrote.
The plot will be generated and saved in a file, but buildMosaic3 doesn't manage to show it. In the jupyter slurm it's understandable since it tries to open a window but fails, returning:
importwxwx.App(False)
SystemExit: UnabletoaccesstheXDisplay, is $DISPLAYsetproperly?
Nevertheless, even executing the same notebook in vscode directly on the esrf computer doesn't seem to work.
The text was updated successfully, but these errors were encountered:
Issue with Mosaic tab in lauetoolsenv2
Hello everyone.
I tried generating some mosaic plots with the GUI but failed.
Tried on the notebook with lauetoolsenv2, but I failed.
Details
In the peaksearch board I opened the first image of the dataset
Under Mosaic & Monitor I zoomed on the central LTO peak in the blue square and selected the parameters
Starting the mosaic plot yields in the terminal:
Backtracking the source code of the mosaic plot in
GUI/PeakSearchGUI.py
andGUI/mosaic.py
, I created a jupyter notebook (/data/bm32/inhouse/STAFF/SERGIOB/build_mosaic.ipynb
) that should achieve the same thing. When executed with lauetoolsenv2, the error message readsHowever, in the current version of LaueTools on GitHub there is no input variable named
stackimageindex
!Not only that, but in the docstring (the types are specified whereas in the repo they are not)
Notebook with laueenv
For reference, I report the minimal working example that I wrote.
The plot will be generated and saved in a file, but buildMosaic3 doesn't manage to show it. In the jupyter slurm it's understandable since it tries to open a window but fails, returning:
Nevertheless, even executing the same notebook in vscode directly on the esrf computer doesn't seem to work.
The text was updated successfully, but these errors were encountered: