Skip to content

Commit

Permalink
Fix needed imports when merging ruff dafe fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyan1214 committed Aug 14, 2024
1 parent 7758567 commit e9bef03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ def hazard_job(hazard_info): # noqa: C901, D103, PLR0914, PLR0915
if importlib.util.find_spec('jpype') is None:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'JPype1']) # noqa: S603
import jpype
from jpype import imports
from jpype.types import * # noqa: F403

memory_total = psutil.virtual_memory().total / (1024.0**3)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
if importlib.util.find_spec('jpype') is None:
subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'JPype1']) # noqa: S603
import jpype
from jpype import imports
from jpype.types import * # noqa: F403

memory_total = psutil.virtual_memory().total / (1024.0**3)
Expand Down

0 comments on commit e9bef03

Please sign in to comment.