Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
dnschouten committed Jul 3, 2023
1 parent 6c31769 commit 581bffb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/assembly_utils/detect_configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@ def get_configuration_2_fragments(parameters):
for file, loc in zip(original_filenames, locations):
sol_dict[file] = loc

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

return [sol_dict]
11 changes: 8 additions & 3 deletions src/assembly_utils/fetch_solutions.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ def fetch_solutions(parameters):
Function to fetch the solution of the fragment configuration for cases with 4 fragments.
"""

with open(
parameters["save_dir"].joinpath("configuration_detection", "location_solution.txt"), "r"
) as f:
location_solution_file = parameters["save_dir"].joinpath("configuration_detection", "location_solution.txt")
assert location_solution_file.exists(), "Could not find location_solution.txt file, " \
"this is most likely because pythostitcher did not " \
"find any feasible solutions. Check the " \
"/configuration_detection directory to verify that " \
"the fragment classification is correct."

with open(location_solution_file, "r") as f:
# Read content and process
contents = f.readlines()
contents = [i.rstrip("\n") for i in contents]
Expand Down

0 comments on commit 581bffb

Please sign in to comment.