Skip to content

Commit 495368d

Browse files
Ready to test tomorrow
1 parent edc14a9 commit 495368d

File tree

2 files changed

+47
-47
lines changed

2 files changed

+47
-47
lines changed

tidy3d/plugins/smatrix/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,5 @@ def run(
246246
"""
247247
batch = create_batch(modeler=modeler, path_dir=path_dir)
248248
batch_data = batch.run()
249-
modeler_data = compose_modeler_data(modeler=modeler, batch_data=batch_data)
249+
modeler_data = compose_modeler_data_from_batch_data(modeler=modeler, batch_data=batch_data)
250250
return modeler_data

tidy3d/plugins/smatrix/web/api/webapi.py

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -192,53 +192,53 @@ def run(
192192
solver_version=solver_version,
193193
reduce_simulation=reduce_simulation,
194194
)
195-
print(batch_task.batch_task_name_map)
196-
print(batch_task.batch_task_name_map.values())
197-
for port, task_id_i in batch_task.batch_task_name_map.items():
198-
simulation_i = modeler.sim_dict[port]
199-
task_id_i_r = upload(
200-
simulation=simulation_i,
201-
task_id=task_id_i,
202-
task_name=port,
203-
folder_name=folder_name,
204-
callback_url=callback_url,
205-
verbose=verbose,
206-
progress_callback=progress_callback_upload,
207-
simulation_type=simulation_type,
208-
parent_tasks=parent_tasks,
209-
solver_version=solver_version,
210-
reduce_simulation=reduce_simulation,
211-
)
212-
print(task_id_i)
213-
print(task_id_i_r)
214-
start(
215-
task_id_i,
216-
solver_version=solver_version,
217-
worker_group=worker_group,
218-
pay_type=pay_type,
219-
priority=priority,
220-
)
221-
from ..core.http_util import http
222-
195+
# print(batch_task.batch_task_name_map)
196+
# print(batch_task.batch_task_name_map.values())
197+
# for port, task_id_i in batch_task.batch_task_name_map.items():
198+
# simulation_i = modeler.sim_dict[port]
199+
# task_id_i_r = upload(
200+
# simulation=simulation_i,
201+
# task_id=task_id_i,
202+
# task_name=port,
203+
# folder_name=folder_name,
204+
# callback_url=callback_url,
205+
# verbose=verbose,
206+
# progress_callback=progress_callback_upload,
207+
# simulation_type=simulation_type,
208+
# parent_tasks=parent_tasks,
209+
# solver_version=solver_version,
210+
# reduce_simulation=reduce_simulation,
211+
# )
212+
# print(task_id_i)
213+
# print(task_id_i_r)
214+
# start(
215+
# task_id_i,
216+
# solver_version=solver_version,
217+
# worker_group=worker_group,
218+
# pay_type=pay_type,
219+
# priority=priority,
220+
# )
221+
# from ..core.http_util import http
223222
# print("batch_task.batch_id")
224223
# print(batch_task.batch_id)
225-
# resp = http.post(
226-
# f"tidy3d/projects/{batch_task.batch_id}/batch-check",
227-
# {
228-
# "batchType": "RF_SWEEP",
229-
# "solverVersion": "dario-rf-0.0.0",
230-
# "protocolVersion": "2.10.0rc2"
231-
# },
232-
# )
233-
# print(resp)
234-
# resp = http.post(
235-
# f"tidy3d/projects/{batch_task.batch_id}/batch-submit",
236-
# {
237-
# "batchType": "RF_SWEEP",
238-
# "solverVersion": "dario-rf-0.0.0",
239-
# "protocolVersion": "2.10.0rc2"
240-
# },
241-
# )
224+
resp = http.post(
225+
f"tidy3d/projects/{batch_task.batch_id}/batch-check",
226+
{
227+
"batchType": "RF_SWEEP",
228+
"solverVersion": "dario-rf-0.0.0",
229+
"protocolVersion": "2.10.0rc2"
230+
},
231+
)
232+
print(resp)
233+
resp = http.post(
234+
f"tidy3d/projects/{batch_task.batch_id}/batch-submit",
235+
{
236+
"batchType": "RF_SWEEP",
237+
"solverVersion": "dario-rf-0.0.0",
238+
"protocolVersion": "2.10.0rc2"
239+
},
240+
)
241+
print(resp)
242242
resp = http.get(
243243
f"tidy3d/tasks/{batch_task.batch_id}/batch-detail?batchType=RF_SWEEP",
244244
{
@@ -249,13 +249,13 @@ def run(
249249
)
250250
print(resp)
251251
from ..core.http_util import http
252-
253252
resp = http.post(
254253
f"tidy3d/projects/{batch_task.batch_id}/postprocess",
255254
{
256255
"batchType": "RF_SWEEP",
257256
"solverVersion": "dario-rf-0.0.0",
258257
"protocolVersion": "2.10.0rc2",
258+
"batchTaskNameMap": batch_task.batch_task_name_map
259259
},
260260
)
261261
print(resp)

0 commit comments

Comments
 (0)