[srrietveld bug] add parameter

57 views
Skip to first unread message

dif...@diffpy.org

unread,
Oct 25, 2011, 9:51:26 AM10/25/11
to srrietv...@googlegroups.com
reporter: monica....@unimi.it

summary: add parameter

description: when I try to add a parameter to the refinement strategy it crashes.
In this case I selected the column and right click, then select 'add to new step', but it happens whatever I do...
how should I do it? thanks
Monica

component: srrietveld

version: 1.0beta-r6746-20110902

traceback:
Traceback (most recent call last):
File "C:\xray\srRietveld\Python26\lib\site-packages\diffpy.srrietveld-1.0beta_r6746_20110902-py2.6.egg\diffpy\srrietveld\gui\errorwrapper.py", line 61, in _f
return func(*args, **kwargs)
File "C:\xray\srRietveld\Python26\lib\site-packages\diffpy.srrietveld-1.0beta_r6746_20110902-py2.6.egg\diffpy\srrietveld\gui\mainframe.py", line 2106, in onTurnOnParam
fitobj.addParamToStrategy(dp, step)
File "C:\xray\srRietveld\Python26\lib\site-packages\diffpy.srrietveld-1.0beta_r6746_20110902-py2.6.egg\diffpy\srrietveld\refinement.py", line 84, in addParamToStrategy
self.setStrategy(strategy.strategy)
UnboundLocalError: local variable 'strategy' referenced before assignment

xiaohao yang

unread,
Oct 27, 2011, 11:11:33 PM10/27/11
to srrietv...@googlegroups.com
I tested it and the crashes only happen in GSAS. The FullProf engine
works fine with adding strategy. Also, version 6640 seems works fine
with both GSAS and FullProf. I will try to fix it. Thanks for
reporting it.

Bests,
Xiaohao

> --
> You received this message because you are subscribed to the Google Groups "srrietveld-dev" group.
> To post to this group, send email to srrietv...@googlegroups.com.
> To unsubscribe from this group, send email to srrietveld-de...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/srrietveld-dev?hl=en.
>
>

--
Xiaohao Yang

Applied Physics & Applied Mathematics
Columbia University
500 West 120th Street
Room 200 Mudd, MC 4701
New York, NY 10027

Email: xy2...@columbia.edu

xiaohao yang

unread,
Oct 31, 2011, 1:25:21 PM10/31/11
to srrietv...@googlegroups.com
Bug fixed, please try the latest verison.

linux:
http://danse.cacr.caltech.edu/packages/dev_danse_us/diffpy-1.1-r6761.tgz
windows:
http://danse.cacr.caltech.edu/packages/dev_danse_us/SrRietveld-1.1-r6761.exe

Best,
Xiaohao

On Tue, Oct 25, 2011 at 9:51 AM, <dif...@diffpy.org> wrote:

Reply all
Reply to author
Forward
0 new messages