Skip to content

Commit 8a15145

Browse files
committed
xarray testing still in progress
1 parent de92303 commit 8a15145

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mhkit/river/io/d3d.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
from mhkit.utils import unorm
1717

1818

19-
def get_all_time(data: netCDF4.Dataset) -> NDArray:
19+
def get_all_time(data: (netCDF4.Dataset, xr.Dataset)) -> NDArray:
2020
"""
2121
Returns all of the time stamps from a D3D simulation passed to the function
2222
as a NetCDF object (data)
2323
2424
Parameters
2525
----------
26-
data: NetCDF4 object
27-
A NetCDF4 object that contains spatial data, e.g. velocity or shear
26+
data: NetCDF4 object or xarray Dataset
27+
A NetCDF4 object or xarray Dataset that contains spatial data, e.g. velocity or shear
2828
stress generated by running a Delft3D model.
2929
3030
Returns

0 commit comments

Comments
 (0)