diff --git a/tidy3d/web/api/container.py b/tidy3d/web/api/container.py index c1ffce6c61..ed9cb775cc 100644 --- a/tidy3d/web/api/container.py +++ b/tidy3d/web/api/container.py @@ -40,7 +40,7 @@ DEFAULT_NUM_WORKERS = 10 DEFAULT_DATA_PATH = "simulation_data.hdf5" DEFAULT_DATA_DIR = "." -BATCH_MONITOR_PROGRESS_REFRESH_TIME = 0.02 +BATCH_PROGRESS_REFRESH_TIME = 0.02 BatchCategoryType = Literal[ "tidy3d", @@ -839,6 +839,9 @@ def upload(self) -> None: completed += 1 progress.update(pbar, completed=completed) + progress.refresh() + time.sleep(BATCH_PROGRESS_REFRESH_TIME) + def get_info(self) -> dict[TaskName, TaskInfo]: """Get information about each task in the :class:`Batch`. @@ -1070,7 +1073,7 @@ def pbar_description( progress.update(pbar, description=desc, completed=pct) progress.refresh() - time.sleep(BATCH_MONITOR_PROGRESS_REFRESH_TIME) + time.sleep(BATCH_PROGRESS_REFRESH_TIME) # final render to terminal state for all bars for task_name, job in self.jobs.items(): diff --git a/tidy3d/web/api/tidy3d_stub.py b/tidy3d/web/api/tidy3d_stub.py index c3c541589e..22152e21ab 100644 --- a/tidy3d/web/api/tidy3d_stub.py +++ b/tidy3d/web/api/tidy3d_stub.py @@ -308,8 +308,6 @@ def postprocess(cls, file_path: str, lazy: bool = True) -> WorkflowDataType: stub_data = Tidy3dStubData.from_file( file_path, lazy=lazy, on_load=cls._check_convergence_and_warnings ) - if not lazy: - cls._check_convergence_and_warnings(stub_data) return stub_data @staticmethod