Skip to content

Commit

Permalink
fix paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dswigh committed Jun 24, 2024
1 parent 217acf7 commit 4439bde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion orderly/clean/cleaner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1328,7 +1328,7 @@ def main(
clean_config_path = (
pathlib.Path(output_path).parent / f"{file_name}_clean_config.json"
)
if clean_config_path != "clean.json":
if clean_config_path != pathlib.Path("clean.json"):
clean_config_path = pathlib.Path(clean_config_path)
else:
clean_config_path = pathlib.Path(output_path).parent / "clean_config.json"
Expand Down
5 changes: 3 additions & 2 deletions orderly/plot/plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -444,8 +444,9 @@ def main_click(
1) If plot_num_rxn_components_bool: plots the number of reactions with a given number of reactants, products, solvents, agents, catalysts, and reagents
2) If plot_frequency_of_occurrence_bool: plots the frequency of occurrence of molecules in the dataset
"""
_log_file = pathlib.Path(plot_output_path) / f"plot.log"
if log_file != "default_path_plot.log":
default_log_path = pathlib.Path("default_path_plot.log")
_log_file = pathlib.Path(plot_output_path) / "plot.log"
if log_file != default_log_path:
_log_file = pathlib.Path(log_file)

main(
Expand Down

0 comments on commit 4439bde

Please sign in to comment.