Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions doc/examples/profile/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def mag(z, z1, z2, M1, M2, M3):
# Set the fittable parameters. Note that the parameters to the function
# after the first parameter *z* become fittable parameters.

sample["sin"].period.range(0, 100)
sample["sin"].phase.range(0, 1)
sample["sin"].thickness.range(0, 1000)
sample["sin"].magnetism.M1.range(0, 10)
sample["sin"].magnetism.M2.range(0, 10)
sample["sin"].magnetism.M3.range(0, 10)
sample["sin"].magnetism.z1.range(0, 100)
sample["sin"].magnetism.z2.range(0, 100)
sample["sin"].profile_params["period"].range(0, 100)
sample["sin"].profile_params["phase"].range(0, 1)
sample["sin"].magnetism.profile_params["M1"].range(0, 10)
sample["sin"].magnetism.profile_params["M2"].range(0, 10)
sample["sin"].magnetism.profile_params["M3"].range(0, 10)
sample["sin"].magnetism.profile_params["z1"].range(0, 100)
sample["sin"].magnetism.profile_params["z2"].range(0, 100)

# Define the model. Since this is a simulation, we need to define the
# incident beam in terms of angles, wavelengths and dispersion. This
Expand Down
Loading