[GSAS-II] potential bug at the import of the phase

jlzhu04 at iphy.ac.cn jlzhu04 at iphy.ac.cn
Sun Jul 28 22:21:49 CDT 2019


Dear Bob and Brain,

I have encountered the following error while I tried to do refinement.




Python module versions loaded:




  Python:     3.7.0




  wx:         4.0.3




  matplotlib: 3.0.0




  numpy:      1.15.2




  scipy:      1.1.0




  OpenGL:     3.1.1a1




  PIL.Image:  5.3.0




  Platform:   win32 64bit AMD64




This is GSAS-II revision 4074




    if itemRest[rest] and itemRest['Use']:
TypeError: list indices must be integers or slices, not str
save to file: RunII - 副本.gpx
project save successful
Starting Sequential Refinement

Refining with PWDR sample3_0001.gsas Bank 1
Traceback (most recent call last):
  File "C:\ProgramData\g2conda\GSASII\GSASIIdataGUI.py", line 4600, in OnRefine
    self.OnSeqRefine(event)
  File "C:\ProgramData\g2conda\GSASII\GSASIIdataGUI.py", line 4782, in OnSeqRefi
ne
    OK,Msg = G2stMn.SeqRefine(self.GSASprojectfile,dlg,refPlotUpdate) #Msg is Rv
als dict if Ok=True
  File "C:\ProgramData\g2conda\GSASII\GSASIIstrMain.py", line 490, in SeqRefine
    refPlotUpdate=refPlotUpdate)
  File "C:\ProgramData\g2conda\GSASII\GSASIIstrMain.py", line 89, in RefineCore
    refPlotUpdate=refPlotUpdate)
  File "C:\ProgramData\g2conda\GSASII\GSASIImath.py", line 164, in HessianLSQ
    M = func(x0,*args)
  File "C:\ProgramData\g2conda\GSASII\GSASIIstrMath.py", line 4149, in errRefine

    pDict,pVals,pWt,pWsum,pWnum = penaltyFxn(HistoPhases,calcControls,parmDict,v
arylist)
  File "C:\ProgramData\g2conda\GSASII\GSASIIstrMath.py", line 336, in penaltyFxn

    if itemRest[rest] and itemRest['Use']:
TypeError: list indices must be integers or slices, not str
save to file: RunII - 副本.gpx
project save successful





-----原始邮件-----
发件人:"Falenty, Andrzej via GSAS-II" <gsas-ii at aps.anl.gov>
发送时间:2019-06-20 04:47:29 (星期四)
收件人: "gsas-ii at mailman.aps.anl.gov" <gsas-ii at aps.anl.gov>
抄送:
主题: Re: [GSAS-II] potential bug at the import of the phase



Dear Bob and Brian,

 

I have encountered the following  error while trying to import a phase from an earlier GSASII project.

 

Best wishes

 


Andrzej

-------------------------------------------------------------------------------------------------------------

 

Python module versions loaded:

  Python:     2.7.12

  wx:         3.0.0.0

  matplotlib: 1.5.3

  numpy:      1.11.2

  scipy:      0.18.1

  OpenGL:     3.1.1a1

  PIL.Image:  3.4.2

  Platform:   win32 64bit AMD64

This is GSAS-II revision 4031

 

Read phase from C:/Users/Andre/Desktop/ILL_2014/891145_891265_D2_hydr_exp241p from file C:\Users\Andre\Desktop\ILL2014\891145_891265_D2_hydr_exp241pm\gsa\24_01_2019_iso_all_free_serie.gpx

Traceback (most recent call last):

  File "C:\g2conda\lib\site-packages\wx-3.0-msw\wx\_core.py", line 16767, in <lambda>

    lambda event: event.callable(*event.args, **event.kw) )

  File "C:\g2conda\GSASII\GSASIIdataGUI.py", line 8164, in SelectDataTreeItem

    G2phG.UpdatePhaseData(G2frame,item,data)

  File "C:\g2conda\GSASII\GSASIIphsGUI.py", line 9964, in UpdatePhaseData

    ChangePage(0)

  File "C:\g2conda\GSASII\GSASIIphsGUI.py", line 9692, in ChangePage

    UpdateGeneral()

  File "C:\g2conda\GSASII\GSASIIphsGUI.py", line 2513, in UpdateGeneral

    mainSizer.Add(FlipSizer())

  File "C:\g2conda\GSASII\GSASIIphsGUI.py", line 2304, in FlipSizer

    flipRes = G2G.ValidatedTxtCtrl(General,Flip,'GridStep',nDig=(10,2),min=0.10,max=2.)

  File "C:\g2conda\GSASII\GSASIIctrlGUI.py", line 526, in __init__

    val = loc[key]

KeyError: 'GridStep'

 

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.aps.anl.gov/pipermail/gsas-ii/attachments/20190729/4d35a8a6/attachment.html>


More information about the GSAS-II mailing list