Skip to content

Commit

Permalink
refresh rate bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daphnedemekas committed Apr 23, 2024
1 parent 38d7a8e commit b89a5b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion diplomat/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
A tool providing multi-animal tracking capabilities on top of other Deep learning based tracking software.
"""

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

Expand Down
4 changes: 1 addition & 3 deletions diplomat/predictors/sfpe/segmented_frame_pass_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def update(self, amt: int = 1):

def rate_limit_update(self):
new_time = time.monotonic()
if(new_time - self._last_update

self._refresh_rate):
if(new_time - self._last_update > self._refresh_rate):
self._last_update = new_time
self.update_shared_mem(self._internal_prog_data)

Expand Down

0 comments on commit b89a5b3

Please sign in to comment.