Skip to content

Commit 8945224

Browse files
fix(rf): minor compatibility solver version fix
1 parent 71a5ffb commit 8945224

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tidy3d/plugins/smatrix/run.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,24 @@ def _run_local(
201201

202202
return compose_modeler_data_from_batch_data(modeler=modeler, batch_data=sim_data_map)
203203

204-
batch = create_batch(modeler=modeler)
204+
# Filter kwargs to only include valid Batch parameters
205+
batch_kwargs = {
206+
k: v
207+
for k, v in kwargs.items()
208+
if k
209+
in {
210+
"solver_version",
211+
"folder_name",
212+
"verbose",
213+
"callback_url",
214+
"simulation_type",
215+
"parent_tasks",
216+
"num_workers",
217+
"reduce_simulation",
218+
"pay_type",
219+
}
220+
}
221+
batch = create_batch(modeler=modeler, **batch_kwargs)
205222
priority = kwargs.get("priority")
206223
if priority is None:
207224
batch_data = batch.run(path_dir=path_dir)

0 commit comments

Comments
 (0)