tidy3d.web.api.webapi.upload#
- class upload[source]#
Bases:
Upload simulation to server, but do not start running
Simulation
.- Parameters:
simulation (Union[
Simulation
,HeatSimulation
]) β 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_chunk
as argument.simulation_type (str) β 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.
- Returns:
Unique identifier of task on server.
- Return type:
str
Notes
Once youβve created a
job
object usingtidy3d.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()
.