diff --git a/latest/_modules/compass/ocean/tests/global_ocean/init/initial_state.html b/latest/_modules/compass/ocean/tests/global_ocean/init/initial_state.html index 13b1a5703..cede343cd 100644 --- a/latest/_modules/compass/ocean/tests/global_ocean/init/initial_state.html +++ b/latest/_modules/compass/ocean/tests/global_ocean/init/initial_state.html @@ -236,7 +236,7 @@
import os
+from datetime import datetime
from functools import partial
from multiprocessing import Pool
@@ -165,7 +166,9 @@ Source code for compass.ocean.tests.utility.extrap_woa.extrap_step
"""
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)
@@ -283,7 +286,7 @@ Source code for compass.ocean.tests.utility.extrap_woa.extrap_step
out_filename = 'extrap_ocean/woa_extrap.nc'
else:
in_filename = 'extrap_land/woa_extrap_horiz.nc'
- out_filename = 'woa23_decav_0.25_extrap.nc'
+ out_filename = self.woa_filename
ds = xr.open_dataset(in_filename)