File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -242,7 +242,10 @@ def task_id(self) -> TaskId:
242
242
"""The task ID for this ``Job``. Uploads the ``Job`` if it hasn't already been uploaded."""
243
243
if self .task_id_cached :
244
244
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 )
246
249
return self ._upload ()
247
250
248
251
def _upload (self ) -> TaskId :
@@ -675,7 +678,10 @@ def num_jobs(self) -> int:
675
678
676
679
def upload (self ) -> None :
677
680
"""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 )
679
685
with ThreadPoolExecutor (max_workers = self .num_workers ) as executor :
680
686
futures = [executor .submit (job .upload ) for _ , job in self .jobs .items ()]
681
687
You can’t perform that action at this time.
0 commit comments