Skip to content

Commit

Permalink
Update JSS sims script to setup pypath
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroSantorum committed Oct 1, 2023
1 parent 6c0ce05 commit c621838
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions simulations/jss_sims.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@
import matplotlib
import matplotlib.pyplot as plt

# This will add the directory of the script to the Python path
sys.path.append(os.path.dirname(__file__))

try:
sys.path.append("./scikit-rmt")
sys.path.append("../")
sys.path.append("../scikit-rmt")
except BaseException:
pass

from skrmt.ensemble.gaussian_ensemble import GaussianEnsemble
from skrmt.ensemble.wishart_ensemble import WishartEnsemble
from skrmt.ensemble.manova_ensemble import ManovaEnsemble
Expand All @@ -22,8 +32,6 @@

IMGS_DIRNAME = "skrmt_sim_imgs"
SCRIPT_PATH = os.path.dirname(__file__)
# This will add the directory of the script to the Python path
sys.path.append(SCRIPT_PATH)

BOLD_CHAR = '\033[1m'
END_CHAR = '\033[0m'
Expand Down

0 comments on commit c621838

Please sign in to comment.