forked from MHKiT-Software/MHKiT-Python
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert river and tidal modules to xarray (MHKiT-Software#285)
* convert river.graphics to xarray * convert mhkit.river.resource to xarray * add pandas to xarray helper function * mhkit.river.io.usgs to xarray * convert mhkit.river.io.usgs to xarray * convert river.io.d3d to xarray * fix discharge_to_velocity * move convert_to_dataset into mhkit.utils.data_utils * update dataset labeling * black formatting for previously changed river files * black formatting for data_utils.py * all xarray tests passing * add helper function to convert input to xr.DataArray * update river to use convert_to_dataArray * update utils.convert_to_dataArray * all river modulel tests passing * black formatting * fix typo in river.io.usgs * update tidal.graphics to use utils.convert_to_dataArray * tidal.performance to xarray * remove tidal.performance dead code * convert tidal.resource to xarray * tidal tests passing * add option to return noaa data as xarray, add xarray test * add tidal.performance xarray tests, tests passing * add parameter validation for to_pandas flag * add tests for data_utils functions * black formatting * revert river.io.usgs._read_usgs_json to pandas for now, still allow xarray output * fix cast to xarray in performance test * fix create_points function after simplifying and converting to xarray * black formatting * fix output format for some river resource functions * black formatting * fix final call to exceedance_probability * move convert_to_dataset, convert_to_dataarray to type_handling * replace out variables with descriptive name * correct test function name * correct case on convert_to_dataArray * update return variable name in velocity_profiles * update handling of dataset to dataarray * black formatting
- Loading branch information
Showing
18 changed files
with
861 additions
and
403 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.