Skip to content

Commit

Permalink
Update lammps.py
Browse files Browse the repository at this point in the history
  • Loading branch information
williamyxl authored Oct 5, 2023
1 parent 96b12e4 commit 1a5bb4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mofa/simulation/lammps.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ def __init__(self, lammps_command: str = "npt_tri", lmp_sims_root_path: str = "l
"""
self.lammps_command = lammps_command
self.lmp_sims_root_path = lmp_sims_root_path
self.cif_files_root_path = cif_files_root_path
self.cif_files_paths = [os.path.join(self.cif_files_root_path, x) for x in os.listdir(self.cif_files_root_path) if x.endswith(".cif")]
logging.info("Making LAMMPS simulation root path at: " + os.path.join(os.getcwd(), self.lmp_sims_root_path))
os.makedirs(self.lmp_sims_root_path, exist_ok=True)
logging.info("Scanning cif files at: " + os.path.join(os.getcwd(), self.cif_files_root_path))
self.cif_files_root_path = cif_files_root_path
self.cif_files_paths = [os.path.join(self.cif_files_root_path, x) for x in os.listdir(self.cif_files_root_path) if x.endswith(".cif")]
logging.info("Found " + "%d" % len(self.cif_files_paths) + " files with .cif extension! \n")

def prep_molecular_dynamics_single(self, cif_path: str, timesteps: int, report_frequency: int, stepsize_fs: float = 0.5) -> (str, int):
Expand Down

0 comments on commit 1a5bb4e

Please sign in to comment.