Skip to content

Commit 3980399

Browse files
committed
fix type errors
1 parent 1afc615 commit 3980399

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

celestial/animation.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ def __init__(
253253
self.gst_actor = types.SimpleNamespace()
254254
self.gst_link_actor = types.SimpleNamespace()
255255

256+
self.lock = td.Lock()
257+
256258
# print(f"Animation: initializing with {self.gst_num} ground stations")
257259

258260
self.makeGstActor(self.gst_num)
@@ -460,7 +462,7 @@ def makeRenderWindow(self) -> None:
460462
self.interactor.Initialize()
461463
# set up a timer to call the update function at a max rate
462464
# of every 7 ms (~144 hz)
463-
self.lock = td.Lock()
465+
464466
self.interactor.AddObserver("TimerEvent", self._updateAnimation)
465467
self.interactor.CreateRepeatingTimer(self.frequency)
466468

celestial/shell.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ def _numba_update_plus_grid_links(
717717
link_array[isl_idx]["distance_m"] = np.uint32(d)
718718

719719
gst_link_id = 0
720-
MAX_INT32 = 2**31 - 1
720+
MAX_INT32 = np.uint32(np.iinfo(np.uint32).max)
721721
for gst in gst_array:
722722
shortest_d = MAX_INT32
723723

0 commit comments

Comments
 (0)