Commit 3980399 1 parent 1afc615 commit 3980399 Copy full SHA for 3980399
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,8 @@ def __init__(
253
253
self .gst_actor = types .SimpleNamespace ()
254
254
self .gst_link_actor = types .SimpleNamespace ()
255
255
256
+ self .lock = td .Lock ()
257
+
256
258
# print(f"Animation: initializing with {self.gst_num} ground stations")
257
259
258
260
self .makeGstActor (self .gst_num )
@@ -460,7 +462,7 @@ def makeRenderWindow(self) -> None:
460
462
self .interactor .Initialize ()
461
463
# set up a timer to call the update function at a max rate
462
464
# of every 7 ms (~144 hz)
463
- self . lock = td . Lock ()
465
+
464
466
self .interactor .AddObserver ("TimerEvent" , self ._updateAnimation )
465
467
self .interactor .CreateRepeatingTimer (self .frequency )
466
468
Original file line number Diff line number Diff line change @@ -717,7 +717,7 @@ def _numba_update_plus_grid_links(
717
717
link_array [isl_idx ]["distance_m" ] = np .uint32 (d )
718
718
719
719
gst_link_id = 0
720
- MAX_INT32 = 2 ** 31 - 1
720
+ MAX_INT32 = np . uint32 ( np . iinfo ( np . uint32 ). max )
721
721
for gst in gst_array :
722
722
shortest_d = MAX_INT32
723
723
You can’t perform that action at this time.
0 commit comments