Skip to content

Commit

Permalink
changing attributes to keys for dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
Jgmedina95 committed Mar 11, 2024
1 parent abac21a commit 34c117e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mdagent/tools/base_tools/simulation_tools/setup_and_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,8 @@ def __init__(
self.sim_id = sim_id
self.pdb_id = pdb_id
self.int_params = (
self.params.integrator_params
if self.params.integrator_params
self.params["ntegrator_params"]
if self.params["integrator_params"]
else {
"integrator_type": "LangevinMiddle",
"Temperature": 300 * kelvin,
Expand All @@ -648,8 +648,8 @@ def __init__(
)

self.sys_params = (
self.params.system_params
if self.params.system_params is not None
self.params["system_params"]
if self.params["system_params"] is not None
else {
"nonbondedMethod": NoCutoff,
"nonbondedCutoff": 1 * nanometers,
Expand All @@ -662,8 +662,8 @@ def __init__(
)

self.sim_params = (
self.params.simulation_params
if self.params.simulation_params is not None
self.params["simulation_params"]
if self.params["simulation_params"] is not None
else {
"Ensemble": "NVT",
"Number of Steps": 5000,
Expand Down

0 comments on commit 34c117e

Please sign in to comment.