Bug Fixes on Simfiles Directory and Config File

This commit is contained in:
2023-05-11 00:19:28 -03:00
parent f22ad97e4a
commit 6b8848e9c2
5 changed files with 20 additions and 11 deletions

View File

@@ -27,7 +27,7 @@ class Gaussian:
def run(self, cycle: int, crystal: Crystal) -> List[float]:
file = Path(
"simfiles",
self.config.simulation_dir,
f"crystal-{str(cycle).zfill(2)}",
f"crystal-{str(cycle).zfill(2)}.gjf"
)
@@ -151,4 +151,9 @@ class Gaussian:
lines = lines[3:] # Consume 3 more lines
return list(map(lambda x: float(x.split()[2]), lines[:number_of_charges]))
return list(
map(
lambda x: float(x.split()[2]),
lines[:number_of_charges]
)
)