Hydrofunctions

Latest version: v0.2.4

Safety actively analyzes 613777 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.2.4

------------------

* Remove support for Python 3.6 & 3.7; add Python 3.10 & 3.11
* Update to Pandas 2+ (jm)
* Update documentation to reflect gauge changes

0.2.3

--------------------

* Moved package requirements & dev requirements to setup.cfg
* Create new 'dev' extra_requirements. Install from inside hydrofunctions: `pip install -e .[dev]`
* Changed default behavior of NWIS & extract_nwis_df to NOT fill missing values by interpolation.

0.2.2

------------------

* Added documentation for the `site_file` and `data_catalog` services
* Added "What is Hysteresis?" example to User's Guide
* Minor feature: URL message will print before & after requests are made
* Added verbose mode to USGS RDB functions
* Bugfix: `hf.df('q')` returned non-discharge data; fixed & added tests & fixture (dgk)
* Bugfix: renamed `typing.py` module to `validate.py` to prevent interference with typing
* Bugfix: HF will raise HydroNoDataError when non-200 response comes back from USGS
* Bugfix: logging off by default.
* Added hf._start_logging() to create a log & start logging.
* HydroExceptions will now create a log message when raised.

0.2.1

------------------

* Moved from TravisCI to Github Actions.
* Added Python 3.9 support.
* Created a verbose mode that is on by default.
* Added the flood stage service from the USGS waterwatch (iem)
* Save & read NWIS data in json.gzip files
* Added ability to read multiple instrument methods at the same time
* Bugfix: divide by zero error when you request data from many sites
* Bugfix: save_parquet

0.2.0

-----------------------------

* NWIS has a simpler interface and improved functionality:
- No need to use .get_data(); data is fetched automatically.
- NWIS.df() creates dataframes using only the parts you want
- .df('discharge') returns a dataframe with only discharge data
- .df('01585200') returns all of the data for just this site
- .df('flags') returns a dataframe with the qualifier flags.
- New and improved REPR: lists stations, parameters, and frequency for a dataset.
* Saving data to a file:
- the 'file' parameter for NWIS allows you to save your data locally
- If the file doesn't exist, NWIS requests the data and creates the file
- Uses the parquet format for faster load times and smaller file sizes
* Improved parsing of data from NWIS:
- missing observations are noted & can be replaced with interpolated values
- duplicates found & removed
- unsorted data found & cleaned.
- different frequencies raise a warning when resampled
* parameterCd now accepts multiple parameters in request.
* If parameterCd is not specified, then all available parameters will be requested (default).
* hf.rating_curve(site) retrieves the current rating curve for a USGS site.
* hf.peaks(site) retrieves the annual peak discharges for a USGS site.
* hf.field_meas(site) retrieves the field data and notes used by the USGS to create a rating curve.
* hf.stats(site, statReportType) retrieves Annual, Monthly, or Daily reports from the USGS.
* hf.site_file(site) retrieves expanded site file.
* hf.data_catalog(site) retrieves history of data collected at site.
* Dropped Python 3.4 & 3.5 support, added 3.8.

0.1.7

----------------------

* Added a flow duration chart (mcr)
* Added the cycleplot chart (mcr)
* Added code coverage (mcr)
* Improved the build scripts for TravisCI (mcr)
* Updated to support Python 3.7

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.