@@ -57,49 +57,6 @@ def _soft_reset(self) -> None:
5757 FecDataWriter ._soft_reset (self )
5858 self .__spy_data ._soft_reset ()
5959
60- def set_up_timings_and_delay (
61- self , simulation_time_step_us : Optional [int ],
62- time_scale_factor : Optional [float ],
63- min_delay : Optional [Union [int , float ]]) -> None :
64- """
65- Setup the timings and delays for the simulation
66-
67- :param simulation_time_step_us:
68- An explicitly specified time step for the simulation in
69- microseconds.
70- If `None`, the value is read from the configuration
71- :param time_scale_factor:
72- An explicitly specified time scale factor for the simulation.
73- If `None`, the value is read from the configuration
74- :param min_delay:
75- new value or `None` to say use simulation_time_step_ms
76- """
77- try :
78- # If there isn't a time scale factor given, try to work it out
79- # on the basis that we can do 0.1ms steps in real time
80- if time_scale_factor is None :
81- # Need to do this early to ensure we have a value
82- if simulation_time_step_us is None :
83- simulation_time_step_us = get_config_int (
84- "Machine" , "simulation_time_step" )
85- default_time_scale_factor = max (
86- 1.0 ,
87- math .ceil (simulation_time_step_us / 10000.0 ))
88- self .set_up_timings (
89- simulation_time_step_us , time_scale_factor ,
90- default_time_scale_factor )
91- if self .get_time_scale_factor () > 1.0 :
92- logger .warning (
93- "A timestep was entered that has forced SpiNNaker to "
94- "automatically slow the simulation down from real "
95- f"time by a factor of { time_scale_factor } ." )
96- else :
97- self .set_up_timings (simulation_time_step_us , time_scale_factor )
98- self ._set_min_delay (min_delay )
99- except ConfigurationException :
100- self .__spy_data ._min_delay = None
101- raise
102-
10360 def set_min_delay (self , min_delay : Optional [float ]) -> None :
10461 """
10562 Sets a min delay or accepts `None` to use simulation_time_step_ms.
0 commit comments