Skip to content

Commit 9cc1a2b

Browse files
authored
Fix step values for susceptibility slider (#76)
Also fix the readout format to show the value in scientific notation.
1 parent 02db71e commit 9cc1a2b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

geoscilabs/mag/Simulator.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,13 @@ def profiledata(Binc, Bdec, Bigrf, depth, susc, comp, irt, Q, rinc, rdec, update
769769
value=53500
770770
),
771771
depth=widgets.FloatSlider(min=0.0, max=5.0, step=0.05, value=0.5),
772-
susc=widgets.FloatSlider(min=0.0, max=800.0, step=5.0, value=1.0),
772+
susc=widgets.FloatSlider(
773+
min=0.0,
774+
max=1.0,
775+
step=0.001,
776+
value=0.0,
777+
readout_format=".2e",
778+
),
773779
comp=widgets.ToggleButtons(options=["tf", "bx", "by", "bz"]),
774780
irt=widgets.ToggleButtons(options=["induced", "remanent", "total"]),
775781
Q=widgets.FloatSlider(min=0.0, max=10.0, step=0.1, value=0.0),

0 commit comments

Comments
 (0)