Skip to content

Commit a3efb0d

Browse files
committed
Corrected error when replication datasets are run from different folders
1 parent 705b918 commit a3efb0d

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

streamline/utils/checker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ def check_phase_9(output_path, experiment_name, rep_data_path):
140140
for filename in glob.glob(output_path + "/" + experiment_name + '/jobsCompleted/job_apply*'):
141141
filename = str(Path(filename).as_posix())
142142
ref = filename.split('/')[-1].split('.')[0]
143-
phase9_jobs.remove(ref)
143+
try:
144+
phase9_jobs.remove(ref)
145+
except ValueError:
146+
pass
144147
return phase9_jobs
145148

146149

streamline/utils/parser_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
import pickle
33
import argparse
4+
import logging
45
from streamline.modeling.utils import SUPPORTED_MODELS_SMALL
56

67

@@ -63,7 +64,7 @@ def load_config(output_path, experiment_name, config=None):
6364
config_file = pickle.load(file)
6465
config.update(config_file)
6566
except FileNotFoundError:
66-
pass
67+
logging.warning("CLI Params File Not Found")
6768
return config
6869

6970

0 commit comments

Comments
 (0)