tidy3d.web.api.mode.run#
- class run[source]#
Bases:
Submits a
ModeSolver
to server, starts running, monitors progress, downloads, and loads results as aModeSolverData
object.- Parameters:
mode_solver (
ModeSolver
) β Mode solver to upload to server.task_name (str = "Untitled") β Name of task.
mode_solver_name (str = "mode_solver") β The name of the mode solver to create the in task.
folder_name (str = "Mode Solver") β Name of folder to store task on web UI.
results_file (str = "mode_solver.hdf5") β Path to download results file (.hdf5).
verbose (bool = True) β If
True
, will print 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.reduce_simulation (Literal["auto", True, False] = "auto") β Restrict simulation to mode solver region. If βautoβ, then simulation is automatically restricted if it contains custom mediums.
- Returns:
Mode solver data with the calculated results.
- Return type:
Inherited Common Usage