Skip to content

Commit aaaf2b0

Browse files
committed
Make iteration an optional arg for write_rmg_input_file()
1 parent 4358514 commit aaaf2b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

t3/simulate/rmg_constantTP.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def set_up(self):
116116
write_rmg_input_file(
117117
rmg=self.generate_rmg_reactors_for_simulation(),
118118
t3=self.t3,
119-
iteration=1, # Does not matter for simulating or computing SA.
120119
path=self.rmg_input_file,
121120
walltime=self.t3['options']['max_RMG_walltime'],
122121
)

t3/utils/writer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818

1919
def write_rmg_input_file(rmg: dict,
2020
t3: dict,
21-
iteration: int,
2221
path: str,
22+
iteration: int = 1,
2323
walltime: str = '00:00:00:00',
2424
):
2525
"""
@@ -29,8 +29,9 @@ def write_rmg_input_file(rmg: dict,
2929
Args:
3030
rmg (dict): The arguments to write in a keyword argument dictionary format.
3131
t3 (dict): The T3 arguments in a keyword argument dictionary format. Includes atol and rtol for SA.
32-
iteration (int): The T3 iteration, used to determine ``core_tolerance`` and ``tolerance_interrupt_simulation``.
3332
path (str): The path where the RMG input file should be saved.
33+
iteration (int, optional): The T3 iteration, used to determine ``core_tolerance`` and
34+
``tolerance_interrupt_simulation``. Does not matter for simulating or computing SA.
3435
walltime (str, optional): The time cap for an RMG run. Should pass here t3['options']['max_RMG_walltime']
3536
"""
3637
rmg = rmg.copy()

0 commit comments

Comments
 (0)