@@ -241,7 +241,7 @@ def __init__(
241241 ):
242242 import math
243243
244- import tof
244+ import tof as tof_pkg
245245 from tof .facilities .ess_pulse import pulse
246246
247247 self .frequency = pulse .frequency
@@ -250,7 +250,7 @@ def __init__(
250250
251251 # Create a source
252252 if source is None :
253- self .source = tof .Source (
253+ self .source = tof_pkg .Source (
254254 facility = 'ess' , neutrons = self .events_per_pulse , pulses = self .npulses
255255 )
256256 else :
@@ -260,7 +260,7 @@ def __init__(
260260 angular_speed = sc .constants .pi * (2.0 * sc .units .rad ) * self .frequency
261261
262262 self .choppers = [
263- tof .Chopper (
263+ tof_pkg .Chopper (
264264 frequency = pulse .frequency ,
265265 open = ch .time_open * angular_speed ,
266266 close = ch .time_close * angular_speed ,
@@ -273,12 +273,12 @@ def __init__(
273273
274274 # Add detectors
275275 self .monitors = [
276- tof .Detector (distance = distance , name = key )
276+ tof_pkg .Detector (distance = distance , name = key )
277277 for key , distance in monitors .items ()
278278 ]
279279
280280 # Propagate the neutrons
281- self .model = tof .Model (
281+ self .model = tof_pkg .Model (
282282 source = self .source , choppers = self .choppers , detectors = self .monitors
283283 )
284284 self .model_result = self .model .run ()
0 commit comments