Skip to content

Commit

Permalink
FIX: Change errors.py calc_errors() to produce a smooth magnetic profile
Browse files Browse the repository at this point in the history
Currently the contours generated for magnetic profiles for the non-sliced samples are producing a step profile. Given the fact that we are already using smooth_profile() for non-magnetic profiles, we should change this to be consistent.
  • Loading branch information
acaruana2009 committed Jun 10, 2021
1 parent cfc11bd commit 65d5d05
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 65d5d05

Please sign in to comment.