tidy3d.web.run
tidy3d.web.run#
- tidy3d.web.run(simulation: tidy3d.components.simulation.Simulation, task_name: str, folder_name: str = 'default', path: str = 'simulation_data.hdf5', callback_url: Optional[str] = None, verbose: bool = True, progress_callback_upload: Optional[Callable[[float], None]] = None, progress_callback_download: Optional[Callable[[float], None]] = None, solver_version: Optional[str] = None, worker_group: Optional[str] = None) tidy3d.components.data.sim_data.SimulationData #
Submits a
Simulation
to server, starts running, monitors progress, downloads, and loads results as aSimulationData
object.- Parameters
simulation (
Simulation
) – Simulation to upload to server.task_name (str) – Name of task.
path (str = "simulation_data.hdf5") – Path to download results file (.hdf5), including filename.
folder_name (str = "default") – Name of folder to store task on web UI.
callback_url (str = None) – Http PUT url to receive simulation finish event. The body content is a json file with fields
{'id', 'status', 'name', 'workUnit', 'solverVersion'}
.verbose (bool = True) – If True, will print progressbars and status, otherwise, will run silently.
progress_callback_upload (Callable[[float], None] = None) – Optional callback function called when uploading file with
bytes_in_chunk
as argument.progress_callback_download (Callable[[float], None] = None) – Optional callback function called when downloading file with
bytes_in_chunk
as argument.solver_version (str = None) – target solver version.
worker_group (str = None) – worker group
- Returns
Object containing solver results for the supplied
Simulation
.- Return type