Skip to content

Commit

Permalink
Unbreak _load_netcdf_resource function (accidentally deleted)
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenzie-grimes-noaa authored Nov 12, 2024
1 parent df6fab1 commit d0be41a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python/idsse/testing/utils/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ def _load_csv_resource(stream: TextIO) -> Sequence[Sequence[any]]:
return [list(map(float, row)) for row in file_reader]


def _load_netcdf_resource(filename: str) -> tuple[dict, np.ndarray]:
"""utility to load NetCDF file from package"""
return read_netcdf(filename)


def _load_html_resource(filestream: TextIO) -> str:
"""utility to load NetCDF file from package"""
return filestream.read()

0 comments on commit d0be41a

Please sign in to comment.