Skip to content

Commit aec97a8

Browse files
committed
tols
1 parent 7968a07 commit aec97a8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/hisp/model.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def B_stepsize(self, t: float) -> float:
217217
# the stepsize is 1/10 of the duration of the pulse
218218
if pulse.pulse_type == "FP":
219219
if relative_time_within_sub_pulse < pulse.duration_no_waiting:
220-
value = 0.01 # s # usually 0.01
220+
value = 0.0001 # s # usually 0.01
221221
else:
222222
value = pulse.duration_no_waiting / 10
223223
elif pulse.pulse_type == "BAKE":
@@ -228,7 +228,7 @@ def B_stepsize(self, t: float) -> float:
228228
else:
229229
value = pulse.duration_no_waiting / 10
230230
else:
231-
value = pulse.duration_no_waiting / 1000 # usually /100
231+
value = pulse.duration_no_waiting / 10000 # usually /100
232232
return periodic_step_function(
233233
relative_time,
234234
period_on=pulse.duration_no_waiting,
@@ -331,17 +331,17 @@ def make_custom_rtol(self, t: float) -> float:
331331
pulse = self.scenario.get_pulse(t)
332332
relative_time = t - self.scenario.get_time_start_current_pulse(t)
333333
if pulse.pulse_type == "GDC" or pulse.pulse_type == "ICWC":
334-
rtol = 1e-13 # 1e-12 for just glow scenario
334+
rtol = 1e-11 # 1e-12 for just glow scenario
335335
elif pulse.pulse_type == "BAKE":
336-
rtol = 1e-12 # 1e-15 for just glow scenario
336+
rtol = 1e-11 # 1e-15 for just glow scenario
337337
elif pulse.pulse_type == "FP" or pulse.pulse_type == "FP_D":
338338
# rtol = 1e-10
339339
if relative_time % pulse.total_duration > pulse.duration_no_waiting:
340340
rtol = 1e-12 # 1e-12
341341
elif pulse.pulse_type == "FP_D":
342342
rtol = 1e-9
343343
else:
344-
rtol = 1e-14 # 1e-6 or 1e-8 most recently
344+
rtol = 1e-12 # 1e-6 or 1e-8 most recently
345345
elif pulse.pulse_type == "RISP":
346346
rtol = 1e-7
347347
else:

0 commit comments

Comments
 (0)