Skip to content

Commit

Permalink
Fix for wave xarray conversion (#310)
Browse files Browse the repository at this point in the history
* restore correct default for pandas/xarray output

* update as_xarray flag to to_pandas in hindcast tests
  • Loading branch information
akeeste authored Apr 25, 2024
1 parent 8651d01 commit 19b4df0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mhkit/tests/wave/io/hindcast/test_hindcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def test_multi_year(self):
parameters = "significant_wave_height"

wave_multiyear, meta = wave.io.hindcast.hindcast.request_wpto_point_data(
data_type, parameters, lat_lon, years, as_xarray=True
data_type, parameters, lat_lon, years, to_pandas=False
)
wave_multiyear_df = (
wave_multiyear["significant_wave_height_0"]
Expand Down
2 changes: 1 addition & 1 deletion mhkit/wave/io/hindcast/hindcast.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def request_wpto_point_data(
str_decode=True,
hsds=True,
path=None,
to_pandas=False,
to_pandas=True,
):
"""
Returns data from the WPTO wave hindcast hosted on AWS at the
Expand Down

0 comments on commit 19b4df0

Please sign in to comment.