Skip to content

Commit

Permalink
Fix filename produced by extrap_woa test case
Browse files Browse the repository at this point in the history
The filename now indicates that it is for January (`_jan`) and
includes a datestamp.
  • Loading branch information
xylar committed Oct 29, 2024
1 parent 6e90cb8 commit 1df8c46
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion compass/ocean/tests/utility/extrap_woa/extrap_step.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
from datetime import datetime
from functools import partial
from multiprocessing import Pool

Expand Down Expand Up @@ -48,7 +49,9 @@ def setup(self):
"""
Determine the output filename
"""
self.woa_filename = 'woa23_decav_0.25_extrap.nc'
now = datetime.now()
datestring = now.strftime("%Y%m%d")
self.woa_filename = f'woa23_decav_0.25_jan_extrap.{datestring}.nc'
self.add_output_file(self.woa_filename)

def run(self):
Expand Down

0 comments on commit 1df8c46

Please sign in to comment.