From ad5792f92facb1a73f27ba99c3bd677e1f30410c Mon Sep 17 00:00:00 2001 From: xivh Date: Thu, 16 Apr 2026 13:53:17 -0700 Subject: [PATCH] fix directory paths --- casm/project/_DirectoryStructure.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/casm/project/_DirectoryStructure.py b/casm/project/_DirectoryStructure.py index 20517cc..862a573 100644 --- a/casm/project/_DirectoryStructure.py +++ b/casm/project/_DirectoryStructure.py @@ -540,16 +540,16 @@ def all_calctype_v2(self): # return self.__all_settings("ref", self.calc_settings_dir(calctype)) def all_import(self): - return self.__all_settings("import", self.__import_dir) + return self.__all_settings("import", self.path / self.__import_dir) def all_fit(self): - return self.__all_settings("fit", self.__fit_dir) + return self.__all_settings("fit", self.path / self.__fit_dir) def all_system(self): - return self.__all_settings("system", self.__system_dir) + return self.__all_settings("system", self.path / self.__system_dir) def all_plottype(self): - return self.__all_settings("plottype", self.__plot_settings_dir) + return self.__all_settings("plottype", self.path / self.__plot_settings_dir) # ** File and Directory paths ** @@ -783,7 +783,7 @@ def ref_dir(self, clex: ClexDescription, calctype: str, ref: str): def chemical_reference(self, clex: ClexDescription, calctype: str, ref: str): """Return chemical reference file path""" - return self.ref_dir(clex=clex, calctype=calctype) / "chemical_reference.json" + return self.ref_dir(clex=clex, calctype=calctype, ref=ref) / "chemical_reference.json" # -- Enumerations --------