How Do I Save or Load a Tidy3d Parallel Job so I Can Work with It Later?

How Do I Save or Load a Tidy3d Parallel Job so I Can Work with It Later?#

Date

Category

2026-04-14 14:22:09

Parameter Sweep

How do I save or load a multi-simulation task?#

When using web.run on multiple simulations, a batch.hdf5 file is automatically created at the path specified by the path argument of web.run. The default location is the current working directory.

You can load the object and data by calling the web.Batch.from_file and load methods:

batch = web.Batch.from_file("path/batch.hdf5")
batch_data = batch.load()

Note that after loading the data, the original data structure is not preserved, and the simulations are indexed by their API keys.