How do I loop through tidy3d.web.BatchData without loading all of the data into memory?

How do I loop through tidy3d.web.BatchData without loading all of the data into memory?#

Date

Category

2023-12-04 20:01:52

Parameter Sweep

After running the simulations, you can get the results from the tidy3d.web.BatchData object directly, using for example sim_data_1 = batch_results[โ€œsim_1โ€]. Or iterating over it in a loop, as below:


sim_data = []
for task_name, sim_data in batch_results.items():
  sim_data.append(sim_data)

So, you will get access to the tidy3d.SimulationData instances to perform your postprocessing.