Spaces:
Running
Running
deepsource-autofix[bot]
commited on
Remove reimported module
Browse files- benchmarks/hyperparamopt.py +0 -1
- pysr/sr.py +0 -1
benchmarks/hyperparamopt.py
CHANGED
@@ -8,7 +8,6 @@ import pysr
|
|
8 |
import time
|
9 |
|
10 |
import contextlib
|
11 |
-
import numpy as np
|
12 |
|
13 |
|
14 |
@contextlib.contextmanager
|
|
|
8 |
import time
|
9 |
|
10 |
import contextlib
|
|
|
11 |
|
12 |
|
13 |
@contextlib.contextmanager
|
pysr/sr.py
CHANGED
@@ -857,7 +857,6 @@ def _check_for_julia_installation():
|
|
857 |
process.stdout.close()
|
858 |
process.wait()
|
859 |
except FileNotFoundError:
|
860 |
-
import os
|
861 |
|
862 |
raise RuntimeError(
|
863 |
f"Your current $PATH is: {os.environ['PATH']}\nPySR could not start julia. Make sure julia is installed and on your $PATH."
|
|
|
857 |
process.stdout.close()
|
858 |
process.wait()
|
859 |
except FileNotFoundError:
|
|
|
860 |
|
861 |
raise RuntimeError(
|
862 |
f"Your current $PATH is: {os.environ['PATH']}\nPySR could not start julia. Make sure julia is installed and on your $PATH."
|