tidy3d.web.api.asynchronous.run_async#
- class run_async[source]#
Bases:
Submits a set of Union[
Simulation,HeatSimulation,EMESimulation] objects to server, starts running, monitors progress, downloads, and loads results as aBatchDataobject.- Parameters:
simulations (Union[Dict[str, Union[
Simulation,HeatSimulation,EMESimulation]], tuple[Union[Simulation,HeatSimulation,EMESimulation]], list[Union[Simulation,HeatSimulation,EMESimulation]]]) β Mapping of task name to simulation or list of simulations.folder_name (str = "default") β Name of folder to store each task on web UI.
path_dir (str) β Base directory where data will be downloaded, by default current working directory.
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'}.num_workers (int = None) β Number of tasks to submit at once in a batch, if None, will run all at the same time.
verbose (bool = True) β If
True, will print progressbars and status, otherwise, will run silently.simulation_type (str = "tidy3d") β Type of simulation being uploaded.
solver_version (Optional[str] = None) β Target solver version.
reduce_simulation (Literal["auto", True, False] = "auto") β Whether to reduce structures in the simulation to the simulation domain only. Note: currently only implemented for the mode solver.
pay_type (Union[PayType, str] = PayType.AUTO) β Specify the payment method.
priority (int = None) β Priority of the simulation in the Virtual GPU (vGPU) queue (1 = lowest, 10 = highest). It affects only simulations from vGPU licenses and does not impact simulations using FlexCredits.
lazy (bool = False) β Whether to load the actual data (
lazy=False) or return a proxy that loads the data when accessed (lazy=True).
- Returns:
Contains the Union[
SimulationData,HeatSimulationData,EMESimulationData] for each Union[Simulation,HeatSimulation,EMESimulation] inBatch.- Return type:
BatchData
See also
JobInterface for managing the running of a Simulation on server.
BatchInterface for submitting several
Simulationobjects to sever.
Inherited Common Usage