Skip to content

Commit

Permalink
Move shared path outside of for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Oct 17, 2023
1 parent 8d0a0e7 commit 6a6a09b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polaris/ocean/tasks/sphere_transport/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 6a6a09b

Please sign in to comment.