Skip to content

Commit

Permalink
refactor empty files
Browse files Browse the repository at this point in the history
  • Loading branch information
lane-neuro committed Jun 1, 2024
1 parent a04e042 commit 24b66b2
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 56 deletions.
18 changes: 0 additions & 18 deletions neurobehavioral_analytics_suite/analytics/preloaded/dist2goal.py

This file was deleted.

18 changes: 0 additions & 18 deletions neurobehavioral_analytics_suite/analytics/preloaded/frame_angle.py
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
#! python
# -*- coding: utf-8 -*-

"""
Docstring
"""

# Imports
# .../ various imports \...

__author__ = 'Lane'
__copyright__ = 'Lane'
__credits__ = ['Lane']
__license__ = 'BSD 3-Clause License'
__version__ = '0.0.0.1'
__maintainer__ = 'Lane'
__emails__ = 'justlane@uw.edu'
__status__ = 'Prototype'
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
#! python
# -*- coding: utf-8 -*-

"""
Docstring
"""

# Imports
# .../ various imports \...

__author__ = 'Lane'
__copyright__ = 'Lane'
__credits__ = ['Lane']
__license__ = 'BSD 3-Clause License'
__version__ = '0.0.0.1'
__maintainer__ = 'Lane'
__emails__ = 'justlane@uw.edu'
__status__ = 'Prototype'
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ async def execute(self) -> None:
self._status = "running"

while True:
self.cpu_usage = self.process.cpu_percent() / psutil.cpu_count()
self.cpu_usage = self.process.cpu_percent()
self.total_memory_usage = psutil.virtual_memory().percent
self.process_memory_usage = self.process.memory_info().rss / (1024 ** 3) # Corrected to output in GB
if self.cpu_usage > self.cpu_threshold:
if (self.cpu_usage / psutil.cpu_count()) > self.cpu_threshold:
self.error_handler.handle_error(Exception(f"CPU usage has exceeded {self.cpu_threshold}%: "
f"current usage is {self.cpu_usage}%"), "resource_monitor")

Expand Down

0 comments on commit 24b66b2

Please sign in to comment.