Skip to content

Commit b89a5b3

Browse files
committed
refresh rate bug
1 parent 38d7a8e commit b89a5b3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

diplomat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A tool providing multi-animal tracking capabilities on top of other Deep learning based tracking software.
33
"""
44

5-
__version__ = "0.1.4"
5+
__version__ = "0.1.5"
66
# Can be used by functions to determine if diplomat was invoked through it's CLI interface.
77
CLI_RUN = False
88

diplomat/predictors/sfpe/segmented_frame_pass_engine.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,7 @@ def update(self, amt: int = 1):
137137

138138
def rate_limit_update(self):
139139
new_time = time.monotonic()
140-
if(new_time - self._last_update
141-
142-
self._refresh_rate):
140+
if(new_time - self._last_update > self._refresh_rate):
143141
self._last_update = new_time
144142
self.update_shared_mem(self._internal_prog_data)
145143

0 commit comments

Comments
 (0)