Skip to content

Commit

Permalink
edit output path
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed Jul 26, 2024
1 parent 801660e commit 0f0bfd5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions cellpack/autopack/Analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,10 @@ def create_report(
run_*_analysis: bool
whether to run specific analysis
"""
if report_output_path is None:
report_output_path = self.output_path
report_output_path = Path(report_output_path)

self.ingredient_key_dict = self.read_dict_from_glob_file("ingredient_keys_*")

if ingredient_keys is None:
Expand Down Expand Up @@ -491,7 +495,7 @@ def create_report(

md_object = MarkdownWriter(
title="Packing analysis report",
output_path=self.output_path,
output_path=report_output_path,
output_image_location=output_image_location,
report_name="analysis_report",
)
Expand Down Expand Up @@ -751,10 +755,7 @@ def add_ingredient_positions_to_plot(
)
# plot the sphere
if ingr.use_rbsphere:
(
ext_recipe,
pts,
) = ingr.getInterpolatedSphere(
(ext_recipe, pts,) = ingr.getInterpolatedSphere(
seed_ingredient_positions[-i - 1],
seed_ingredient_positions[-i],
)
Expand Down Expand Up @@ -856,9 +857,9 @@ def update_pairwise_distances(
ingr.name,
ingr2.name,
):
pairwise_distance_dict[seed_index][f"{ingr.name}_{ingr2.name}"] = (
self.env.calc_pairwise_distances(ingr.name, ingr2.name).tolist()
)
pairwise_distance_dict[seed_index][
f"{ingr.name}_{ingr2.name}"
] = self.env.calc_pairwise_distances(ingr.name, ingr2.name).tolist()

return pairwise_distance_dict

Expand Down

0 comments on commit 0f0bfd5

Please sign in to comment.