Skip to content

Commit 135bf47

Browse files
committedMar 5, 2025·
bug
1 parent 3b9ea44 commit 135bf47

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎improvelib/applications/synergy/synergy_utils.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ def get_all_response_data(train_split_file, val_split_file, test_split_file, ben
8686
return df
8787

8888
def get_all_splits(train_split_file, val_split_file, test_split_file, benchmark_dir):
89-
if isinstance(train_split_file, str):
89+
try:
9090
train_split_file = literal_eval(train_split_file)
91-
if isinstance(val_split_file, str):
9291
val_split_file = literal_eval(val_split_file)
93-
if isinstance(test_split_file, str):
9492
test_split_file = literal_eval(test_split_file)
93+
except Exception:
94+
pass
9595
if isinstance(train_split_file, str) and isinstance(val_split_file, str) and isinstance(test_split_file, str):
9696
# get path to splits files, read data
9797
train_split_path = get_full_input_path(train_split_file, benchmark_dir, 'splits')

0 commit comments

Comments
 (0)
Please sign in to comment.