Skip to content

Commit 581bffb

Browse files
committed
bugfix
1 parent 6c31769 commit 581bffb

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/assembly_utils/detect_configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,6 @@ def get_configuration_2_fragments(parameters):
109109
for file, loc in zip(original_filenames, locations):
110110
sol_dict[file] = loc
111111

112-
parameters["log"].log(parameters["my_level"], " > finished\n")
112+
parameters["log"].log(parameters["my_level"], " - finished!\n")
113113

114114
return [sol_dict]

src/assembly_utils/fetch_solutions.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,14 @@ def fetch_solutions(parameters):
66
Function to fetch the solution of the fragment configuration for cases with 4 fragments.
77
"""
88

9-
with open(
10-
parameters["save_dir"].joinpath("configuration_detection", "location_solution.txt"), "r"
11-
) as f:
9+
location_solution_file = parameters["save_dir"].joinpath("configuration_detection", "location_solution.txt")
10+
assert location_solution_file.exists(), "Could not find location_solution.txt file, " \
11+
"this is most likely because pythostitcher did not " \
12+
"find any feasible solutions. Check the " \
13+
"/configuration_detection directory to verify that " \
14+
"the fragment classification is correct."
15+
16+
with open(location_solution_file, "r") as f:
1217
# Read content and process
1318
contents = f.readlines()
1419
contents = [i.rstrip("\n") for i in contents]

0 commit comments

Comments
 (0)