tidy3d.web.api.webapi.upload#
- class upload[source]#
- Bases: - Upload simulation to server, but do not start running - Simulation.- Parameters:
- simulation (Union[ - Simulation,- HeatSimulation,- EMESimulation]) β Simulation to upload to server.
- task_name (str) β Name of task. 
- folder_name (str) β 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 (Callable[[float], None] = None) β Optional callback function called when uploading file with - bytes_in_chunkas argument.
- simulation_type (str = "tidy3d") β Type of simulation being uploaded. 
- parent_tasks (List[str]) β List of related task ids. 
- source_required (bool = True) β If - True, simulations without sources will raise an error before being uploaded.
- solver_version (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. 
 
- Returns:
- Unique identifier of task on server. 
- Return type:
- str 
 - Notes - Once youβve created a - jobobject using- tidy3d.web.api.container.Job, you can upload it to our servers with:- web.upload(simulation, task_name="task_name", verbose=verbose) - It will not run until you explicitly tell it to do so with - tidy3d.web.api.webapi.start().- Inherited Common Usage