Skip to content

Commit

Permalink
adapt keyword handling in analysis file
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesKarwou committed Nov 14, 2023
1 parent 7d194ea commit f51e3d1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions transformato/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ def __init__(self, configuration: dict, structure_name: str):
self.thinning: int = 0
self.save_results_to_path: str = f"{self.configuration['system_dir']}/results/"
self.traj_files = defaultdict(list)
self.forcefield = "charmm"
if self.configuration["simulation"]["forcefield"] == "amber":
self.forcefield = "amber"
ff = self.configuration["simulation"].get("forcefield")
if ff is None:
self.forcefield = "charmm"
else:
self.forcefield = ff

def load_trajs(self, nr_of_max_snapshots: int = 300, multiple_runs: int = 0):
"""
Expand Down

0 comments on commit f51e3d1

Please sign in to comment.