Skip to content

Commit

Permalink
Corrected error when replication datasets are run from different folders
Browse files Browse the repository at this point in the history
  • Loading branch information
raptor419 committed Sep 28, 2023
1 parent 705b918 commit a3efb0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion streamline/utils/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ def check_phase_9(output_path, experiment_name, rep_data_path):
for filename in glob.glob(output_path + "/" + experiment_name + '/jobsCompleted/job_apply*'):
filename = str(Path(filename).as_posix())
ref = filename.split('/')[-1].split('.')[0]
phase9_jobs.remove(ref)
try:
phase9_jobs.remove(ref)
except ValueError:
pass
return phase9_jobs


Expand Down
3 changes: 2 additions & 1 deletion streamline/utils/parser_helpers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import pickle
import argparse
import logging
from streamline.modeling.utils import SUPPORTED_MODELS_SMALL


Expand Down Expand Up @@ -63,7 +64,7 @@ def load_config(output_path, experiment_name, config=None):
config_file = pickle.load(file)
config.update(config_file)
except FileNotFoundError:
pass
logging.warning("CLI Params File Not Found")
return config


Expand Down

0 comments on commit a3efb0d

Please sign in to comment.