From 6a6a09bde476e03f0770854272fb03ed97c71a26 Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Tue, 17 Oct 2023 16:56:00 +0200 Subject: [PATCH] Move shared path outside of for loop --- polaris/ocean/tasks/sphere_transport/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polaris/ocean/tasks/sphere_transport/__init__.py b/polaris/ocean/tasks/sphere_transport/__init__.py index 893e05ee8..419c29b8c 100644 --- a/polaris/ocean/tasks/sphere_transport/__init__.py +++ b/polaris/ocean/tasks/sphere_transport/__init__.py @@ -139,6 +139,8 @@ def _setup_steps(self): component = self.component + sph_trans_dir = f'spherical/{prefix}/{case_name}' + analysis_dependencies: Dict[str, Dict[str, Step]] = ( dict(mesh=dict(), init=dict(), forward=dict())) for resolution in resolutions: @@ -147,8 +149,6 @@ def _setup_steps(self): self.add_step(base_mesh_step, symlink=f'base_mesh/{mesh_name}') analysis_dependencies['mesh'][resolution] = base_mesh_step - sph_trans_dir = f'spherical/{prefix}/{case_name}' - name = f'{prefix}_init_{mesh_name}' subdir = f'{sph_trans_dir}/init/{mesh_name}' if self.include_viz: