[GSAS-II] Python error and GUI freeze
Diogo Fernandes De Almeida
dafda1 at st-andrews.ac.uk
Mon Oct 14 05:32:41 CDT 2024
Hi all,
I'm using version 'ab0be8' of GSAS-II (updated today), and I've been consistently getting the following error when trying to run a refinement through the GUI:
Traceback (most recent call last):
File "C:\Users\dafda1\Anaconda3\envs\GSASII\GSAS-II\GSASII\GSASIIdataGUI.py", line 5541, in OnRefine
refPlotUpdate = G2plt.PlotPatterns(self,refineMode=True) # prepare for plot updating
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dafda1\Anaconda3\envs\GSASII\GSAS-II\GSASII\GSASIIpwdplot.py", line 2162, in PlotPatterns
Page.phaseColors = {p:refColors[i%len(refColors)] for i,p in enumerate(Phases)}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\dafda1\Anaconda3\envs\GSASII\GSAS-II\GSASII\GSASIIpwdplot.py", line 2162, in <dictcomp>
Page.phaseColors = {p:refColors[i%len(refColors)] for i,p in enumerate(Phases)}
^^^^^^^^^
NameError: cannot access free variable 'refColors' where it is not associated with a value in enclosing scope
This makes the progress window and GSAS-II in general freeze, even when I attempt to cancel the refinement through the GUI. Unsure if this is a problem with my Python installation or with GSAS but any guidance would be very appreciated!
Thank you for your time!
Best wishes,
Diogo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20241014/36832a2a/attachment-0001.html>
More information about the GSAS-II
mailing list