Skip to content

Commit

Permalink
fixed arguments to fit_to_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas DREGE committed Jan 7, 2025
1 parent ef18044 commit 371d973
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions py4cast/datasets/titan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ def fit_to_grid(
param: WeatherParam,
arr: np.ndarray,
lons: np.ndarray,
lats: np.ndarray,
get_grid_coords: Callable[[WeatherParam], List[str]],
lats: np.ndarray
) -> np.ndarray:
# already on good grid, nothing to do:
if param.grid.name == param.native_grid:
Expand Down Expand Up @@ -194,7 +193,7 @@ def load_data_from_disk(
data_path = get_filepath(ds_name, param, date, file_format)
if file_format == "grib":
arr, lons, lats = load_data_grib(param, data_path)
arr = fit_to_grid(arr, lons, lats)
arr = fit_to_grid(param, arr, lons, lats)
else:
arr = np.load(data_path)

Expand Down

0 comments on commit 371d973

Please sign in to comment.