@@ -103,7 +103,7 @@ def evaluate_with_ase(
103103 return calc_static_with_ase (
104104 structure = structure ,
105105 ase_calculator = ase_calculator ,
106- output = get_quantities_from_tasks (tasks = tasks ),
106+ output_keys = get_quantities_from_tasks (tasks = tasks ),
107107 )
108108 else :
109109 raise ValueError ("The ASE calculator does not implement:" , tasks )
@@ -113,28 +113,29 @@ def evaluate_with_ase(
113113def calc_static_with_ase (
114114 structure ,
115115 ase_calculator ,
116- output = OutputStatic .fields (),
116+ output_keys = OutputStatic .fields (),
117117):
118118 return ASEOutputStatic .get (
119- ASEExecutor (ase_structure = structure , ase_calculator = ase_calculator ), * output
119+ ASEExecutor (ase_structure = structure , ase_calculator = ase_calculator ),
120+ * output_keys ,
120121 )
121122
122123
123124def _calc_md_step_with_ase (
124- dyn , structure , ase_calculator , temperature , run , thermo , output
125+ dyn , structure , ase_calculator , temperature , run , thermo , output_keys
125126):
126127 structure .calc = ase_calculator
127128 MaxwellBoltzmannDistribution (atoms = structure , temperature_K = temperature )
128- cache = {q : [] for q in output }
129+ cache = {q : [] for q in output_keys }
129130 for i in range (int (run / thermo )):
130131 dyn .run (thermo )
131132 calc_dict = ASEOutputMolecularDynamics .get (
132133 ASEExecutor (ase_structure = structure , ase_calculator = ase_calculator ),
133- * output ,
134+ * output_keys ,
134135 )
135136 for k , v in calc_dict .items ():
136137 cache [k ].append (v )
137- return {q : np .array (cache [q ]) for q in output }
138+ return {q : np .array (cache [q ]) for q in output_keys }
138139
139140
140141def calc_molecular_dynamics_npt_with_ase (
@@ -147,7 +148,7 @@ def calc_molecular_dynamics_npt_with_ase(
147148 pfactor = 2e6 * units .GPa * (units .fs ** 2 ),
148149 temperature = 100 ,
149150 externalstress = np .array ([0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 ]) * units .bar ,
150- output = ASEOutputMolecularDynamics .fields (),
151+ output_keys = ASEOutputMolecularDynamics .fields (),
151152):
152153 return _calc_md_step_with_ase (
153154 dyn = NPT (
@@ -169,7 +170,7 @@ def calc_molecular_dynamics_npt_with_ase(
169170 temperature = temperature ,
170171 run = run ,
171172 thermo = thermo ,
172- output = output ,
173+ output_keys = output_keys ,
173174 )
174175
175176
@@ -181,7 +182,7 @@ def calc_molecular_dynamics_langevin_with_ase(
181182 timestep = 1 * units .fs ,
182183 temperature = 100 ,
183184 friction = 0.002 ,
184- output = ASEOutputMolecularDynamics .fields (),
185+ output_keys = ASEOutputMolecularDynamics .fields (),
185186):
186187 return _calc_md_step_with_ase (
187188 dyn = Langevin (
@@ -195,7 +196,7 @@ def calc_molecular_dynamics_langevin_with_ase(
195196 temperature = temperature ,
196197 run = run ,
197198 thermo = thermo ,
198- output = output ,
199+ output_keys = output_keys ,
199200 )
200201
201202
@@ -231,7 +232,7 @@ def calc_molecular_dynamics_thermal_expansion_with_ase(
231232 ttime = 100 * units .fs ,
232233 pfactor = 2e6 * units .GPa * (units .fs ** 2 ),
233234 externalstress = np .array ([0.0 , 0.0 , 0.0 , 0.0 , 0.0 , 0.0 ]) * units .bar ,
234- output = OutputThermalExpansionProperties .fields (),
235+ output_keys = OutputThermalExpansionProperties .fields (),
235236):
236237 structure_current = structure .copy ()
237238 temperature_lst = np .arange (
@@ -257,5 +258,5 @@ def calc_molecular_dynamics_thermal_expansion_with_ase(
257258 ThermalExpansionProperties (
258259 temperatures_lst = temperature_md_lst , volumes_lst = volume_md_lst
259260 ),
260- * output ,
261+ * output_keys ,
261262 )
0 commit comments