From a6b2a6f675240c645c9f36c14c96b6f1e1a97752 Mon Sep 17 00:00:00 2001 From: Santiago Soler Date: Mon, 23 Sep 2024 14:39:42 -0700 Subject: [PATCH] Fix step values for susceptibility slider Also fix the readout format to show the value in scientific notation. --- geoscilabs/mag/Simulator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/geoscilabs/mag/Simulator.py b/geoscilabs/mag/Simulator.py index 1e075fc..0cac592 100644 --- a/geoscilabs/mag/Simulator.py +++ b/geoscilabs/mag/Simulator.py @@ -769,7 +769,13 @@ def profiledata(Binc, Bdec, Bigrf, depth, susc, comp, irt, Q, rinc, rdec, update value=53500 ), depth=widgets.FloatSlider(min=0.0, max=5.0, step=0.05, value=0.5), - susc=widgets.FloatSlider(min=0.0, max=800.0, step=5.0, value=1.0), + susc=widgets.FloatSlider( + min=0.0, + max=1.0, + step=0.001, + value=0.0, + readout_format=".2e", + ), comp=widgets.ToggleButtons(options=["tf", "bx", "by", "bz"]), irt=widgets.ToggleButtons(options=["induced", "remanent", "total"]), Q=widgets.FloatSlider(min=0.0, max=10.0, step=0.1, value=0.0),