Skip to content

Commit

Permalink
Merge pull request #127 from reflectometry/magnetic_smooth_profile_ac…
Browse files Browse the repository at this point in the history
…aruana

FIX: Change errors.py calc_errors() to produce a smooth magnetic profile
  • Loading branch information
bmaranville authored Jun 11, 2021
2 parents cfc11bd + 65d5d05 commit 4952636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion refl1d/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def record_point():
slabs_i = [L.thickness.value for L in m.sample[1:-1]]
slabs[m].append(np.array(slabs_i))
if m.ismagnetic:
z, rho, irho, rhoM, thetaM = m.magnetic_step_profile()
z, rho, irho, rhoM, thetaM = m.magnetic_smooth_profile()
profiles[m].append((z+0, rho+0, irho+0, rhoM+0, thetaM+0))
else:
z, rho, irho = m.smooth_profile()
Expand Down

0 comments on commit 4952636

Please sign in to comment.