Skip to content

Commit dc37922

Browse files
committed
Apply Copilot review suggestions
1 parent cd31762 commit dc37922

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

docs/source/available-parameters.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ functionality of the diagnostics.
7979
Time slices are zero-based indices into the time dimension of the input dataset.
8080
This enables analysis of individual time steps instead of climatological means.
8181
**Note:** This parameter is mutually exclusive with ``seasons``. When using ``time_slices``, do not set ``seasons``.
82-
Supported sets: ``lat_lon``, ``lat_lon_native``, ``polar``, ``zonal_mean_2d``, ``meridional_mean_2d``, ``zonal_mean_2d_stratosphere``.
82+
Supported sets: ``lat_lon``, ``lat_lon_native``, ``polar``, ``zonal_mean_xy``, ``zonal_mean_2d``, ``meridional_mean_2d``, ``zonal_mean_2d_stratosphere``.
8383
- **sets**: A list of the sets to be run. Default is all sets:
8484
``['zonal_mean_xy', 'zonal_mean_2d', 'zonal_mean_2d_stratosphere', 'meridional_mean_2d', 'lat_lon', 'lat_lon_native', 'polar', 'area_mean_time_series', 'cosp_histogram', 'enso_diags', 'qbo', 'streamflow', 'diurnal_cycle', 'arm_diags', 'tc_analysis', 'annual_cycle_zonal_mean', 'lat_lon_land', 'lat_lon_river', 'aerosol_aeronet', 'aerosol_budget']``.
8585
- **variables**: What variable(s) to use for this run. Ex: ``variables=["T", "PRECT"]``.

e3sm_diags/driver/utils/dataset_xr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,8 +1593,9 @@ def _get_land_sea_mask(self, season: ClimoFreq) -> xr.Dataset:
15931593
15941594
Parameters
15951595
----------
1596-
ClimoFreq : str
1596+
season : ClimoFreq
15971597
The season to subset on.
1598+
15981599
Returns
15991600
-------
16001601
xr.Dataset

e3sm_diags/driver/utils/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _select_dataset_fetch_method(
8383
dataset : Dataset
8484
The dataset object.
8585
time_selection_type : Literal["time_slices", "seasons"]
86-
The type of time selection, e.g., "time_slices" or "seasons
86+
The type of time selection, e.g., "time_slices" or "seasons.
8787
8888
Returns
8989
-------

e3sm_diags/parameter/core_parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ def _get_time_selection_to_use(
487487
488488
Returns
489489
-------
490-
tuple[Literal["time_slice", "seasons"], list[TimeSlice] | list[ClimoFreq]]
490+
tuple[Literal["time_slices", "seasons"], list[TimeSlice] | list[ClimoFreq]]
491491
A tuple containing the time selection type ("time_slices" or "seasons")
492492
and the corresponding list of values.
493493

e3sm_diags/parameter/lat_lon_native_parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _set_time_slice_name_yrs_attrs(
7878
The test dataset object.
7979
ref_ds : Dataset
8080
The reference dataset object.
81-
time_slice : Timeslice
81+
time_slice : TimeSlice
8282
The time slice specification.
8383
8484
Notes

0 commit comments

Comments
 (0)