Skip to content

Commit 2fa2016

Browse files
committed
Use "python" instead of "python3" in history attr
Updated the history attribute in `grib_to_netcdf.py` and its associated test to use "python" instead of "python3".
1 parent 406e7e5 commit 2fa2016

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

nowcast/workers/grib_to_netcdf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ def _write_netcdf(nemo_ds, file_date, run_date, run_type, config, fcst=False):
727727
{
728728
"history": (
729729
f"[{arrow.now('local').format('ddd YYYY-MM-DD HH:mm:ss ZZ')}] "
730-
f"python3 -m nowcast.workers.grib_to_netcdf $NOWCAST_YAML "
730+
f"python -m nowcast.workers.grib_to_netcdf $NOWCAST_YAML "
731731
f"{run_type} --run-date {run_date.format('YYYY-MM-DD')}"
732732
),
733733
}

tests/workers/test_grib_to_netcdf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def config(base_config):
5252
- [VGRD_AGL-10m, v10, v_wind] # v component of wind velocity at 10m elevation
5353
- [DSWRF_Sfc, ssrd, solar] # accumulated downward shortwave (solar) radiation at ground level
5454
- [DLWRF_Sfc, strd, therm_rad] # accumulated downward longwave (thermal) radiation at ground level
55-
- [LHTFL_Sfc, lhtfl, LHTFL_surface] # upward surface latent heat flux (for VHFR FVCOM)
55+
- [LHTFL_Sfc, slhtf, LHTFL_surface] # upward surface latent heat flux (for VHFR FVCOM)
5656
- [TMP_AGL-2m, t2m, tair] # air temperature at 2m elevation
5757
- [SPFH_AGL-2m, sh2, qair] # specific humidity at 2m elevation
5858
- [RH_AGL-2m, r2, RH_2maboveground] # relative humidity at 2m elevation (for VHFR FVCOM)
@@ -842,7 +842,7 @@ def mock_now(tz):
842842

843843
expected = (
844844
f"[Sun 2023-03-12 16:02:43 -07:00] "
845-
f"python3 -m nowcast.workers.grib_to_netcdf $NOWCAST_YAML "
845+
f"python -m nowcast.workers.grib_to_netcdf $NOWCAST_YAML "
846846
f"{run_type} --run-date 2023-03-12"
847847
)
848848
assert nemo_ds.attrs["history"] == expected

0 commit comments

Comments
 (0)