Skip to content

Commit

Permalink
fix mixed up names for pre_edge_details.pre_offset and slope
Browse files Browse the repository at this point in the history
  • Loading branch information
newville committed Jul 20, 2024
1 parent 41f1329 commit 166b949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions larch/xafs/pre_edge.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ def pre_edge(energy, mu=None, group=None, e0=None, step=None, nnorm=None,
for attr in ('pre1', 'pre2', 'norm1', 'norm2', 'nnorm', 'nvict'):
setattr(group.pre_edge_details, attr, pre_dat.get(attr, None))

group.pre_edge_details.pre_slope = pre_dat['precoefs'][0]
group.pre_edge_details.pre_offset = pre_dat['precoefs'][1]
group.pre_edge_details.pre_slope = pre_dat['precoefs'][1]
group.pre_edge_details.pre_offset = pre_dat['precoefs'][0]

for i in range(MAX_NNORM):
if hasattr(group, 'norm_c%i' % i):
Expand Down

0 comments on commit 166b949

Please sign in to comment.