Skip to content

Commit 56a45b1

Browse files
Add RF ndpoints support
1 parent 8ee486d commit 56a45b1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tidy3d/web/api/container.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,10 @@ def task_id(self) -> TaskId:
242242
"""The task ID for this ``Job``. Uploads the ``Job`` if it hasn't already been uploaded."""
243243
if self.task_id_cached:
244244
return self.task_id_cached
245-
self._check_folder(self.folder_name)
245+
if self.simulation_type == "microwave":
246+
self._check_folder(self.folder_name, projects_endpoint="tidy3d/projects/rf")
247+
else:
248+
self._check_folder(self.folder_name)
246249
return self._upload()
247250

248251
def _upload(self) -> TaskId:
@@ -675,7 +678,10 @@ def num_jobs(self) -> int:
675678

676679
def upload(self) -> None:
677680
"""Upload a series of tasks associated with this ``Batch`` using multi-threading."""
678-
self._check_folder(self.folder_name)
681+
if self.simulation_type == "microwave":
682+
self._check_folder(self.folder_name, projects_endpoint="tidy3d/projects/rf")
683+
else:
684+
self._check_folder(self.folder_name)
679685
with ThreadPoolExecutor(max_workers=self.num_workers) as executor:
680686
futures = [executor.submit(job.upload) for _, job in self.jobs.items()]
681687

0 commit comments

Comments
 (0)