Skip to content

Commit

Permalink
Update _extract_var_start_and_end_years() to return ints
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvothecoder committed Oct 28, 2024
1 parent 648e1e1 commit 40de792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e3sm_diags/driver/utils/dataset_xr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ def _extract_var_start_and_end_years(self, ds: xr.Dataset) -> Tuple[int, int]:
if time_coords[-1].dt.month == 1:
end_year -= 1

return start_year, end_year
return start_year.item(), end_year.item()

def _get_slice_with_bounds(
self, ds: xr.Dataset, year_str: str, slice_type: Literal["start", "end"]
Expand Down

0 comments on commit 40de792

Please sign in to comment.