Skip to content

Commit

Permalink
fix saving feffit result chi in all spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Nov 22, 2024
1 parent f3bec3f commit 4396621
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions larch/wxxas/feffit_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2195,8 +2195,13 @@ def onSaveFit(self, evt=None, form='chikw'):
ds0 = result.datasets[0]

xname = 'k' if form.startswith('chik') else 'r'
yname = 'chi' if form.startswith('chik') else form
yname = 'chiq_re' if form.startswith('chiq') else form
yname = form
if form.startswith('chiq'):
yname = 'chiq_re'
elif form.startswith('chik'):
yname = 'chi'


kw = 0
if form == 'chikw':
kw = ds0.transform.kweight
Expand Down

0 comments on commit 4396621

Please sign in to comment.