|
1 | 1 | from .pairing import pair |
2 | 2 | from .beam_pads import BEAM_PADS_ARRAY |
| 3 | +from .typed_dict import NumbaTypedDict |
3 | 4 |
|
4 | 5 | import numpy as np |
5 | 6 | from numba import njit |
6 | | -from numba.typed import Dict |
7 | 7 |
|
8 | 8 | STEPS = 10 |
9 | 9 |
|
@@ -124,7 +124,7 @@ def point_transport( |
124 | 124 | time: float, |
125 | 125 | center: tuple[float, float], |
126 | 126 | electrons: int, |
127 | | - points: Dict[int, int], |
| 127 | + points: NumbaTypedDict[int, int], |
128 | 128 | ): |
129 | 129 | """ |
130 | 130 | Transports all electrons created at a point in a simulated nucleus' track |
@@ -170,7 +170,7 @@ def transverse_transport( |
170 | 170 | center: tuple[float, float], |
171 | 171 | electrons: int, |
172 | 172 | sigma_t: float, |
173 | | - points: Dict[int, int], |
| 173 | + points: NumbaTypedDict[int, int], |
174 | 174 | ): |
175 | 175 | """ |
176 | 176 | Transports all electrons created at a point in a simulated nucleus' |
@@ -246,7 +246,7 @@ def find_pads_hit( |
246 | 246 | center: tuple[float, float], |
247 | 247 | electrons: int, |
248 | 248 | sigma_t: float, |
249 | | - points: Dict[int, int], |
| 249 | + points: NumbaTypedDict[int, int], |
250 | 250 | ): |
251 | 251 | """ |
252 | 252 | Finds the pads hit by transporting the electrons created at a point in |
@@ -298,7 +298,7 @@ def transport_track( |
298 | 298 | dv: float, |
299 | 299 | track: np.ndarray, |
300 | 300 | electrons: np.ndarray, |
301 | | - points: Dict[int, int], |
| 301 | + points: NumbaTypedDict[int, int], |
302 | 302 | ): |
303 | 303 | """ |
304 | 304 | High-level function that transports each point in a nucleus' trajectory |
|
0 commit comments