diff --git a/orderly/clean/cleaner.py b/orderly/clean/cleaner.py index 3584b78..d2539f3 100644 --- a/orderly/clean/cleaner.py +++ b/orderly/clean/cleaner.py @@ -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" diff --git a/orderly/plot/plotter.py b/orderly/plot/plotter.py index 3f5ad46..ffbdd1d 100644 --- a/orderly/plot/plotter.py +++ b/orderly/plot/plotter.py @@ -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(