Recent Releases of Surface water network
Surface water network - Version 0.8
Released 2 July 2024
New things
- Add
modflow.SwnMf6.gather_reaches()
(#92) - Add
swn.SurfaceWaterNetwork.coarsen()
to create stream networks with a higher stream order (#100)
Other changes
- Fix warnings and test with
locate_geoms()
(#96) - Change build to hatch, use only ruff format and lint tools, add workflow to publish to PyPI (#97)
- Fixes for geopandas-1.0.0 (#98)
- Always use native Python types for list outputs (#101)
Hydrosphere - Freshwater and Hydrology
- Python
Published by mwtoews 10 months ago
Surface water network - Version 0.7
This is primarily a maintenance release with no exciting features.
- Require FloPy 3.3.6 or later (#80)
- Accommodate different reach index names
rno
orifno
since FloPy 3.5.0 (#83) - Maintenance updates to work with the latest pandas and FloPy releases (#91)
- Update
swn.file.gdf_to_shapefile()
to keep number data types (#79)
Hydrosphere - Freshwater and Hydrology
- Python
Published by mwtoews over 1 year ago
Surface water network - Version 0.6
Released 25 May 2023
Breaking changes
- Minimum requirements are Python 3.8, geopandas 0.9 (#58, #69)
- Remove legacy
modflow.MfSfrNetwork
(#56)
New things
- Add
swn.file.read_formatted_frame()
andwrite_formatted_frame()
methods (#62, #73) - Add functionality to allow other MF6 packages to use reaches data with
modflow.SwnMf6.package_period_frame()
,write_package_period()
,flopy_package_period()
, andset_package_obj()
(#72) - Add functionality to allow other MODFLOW packages to use reaches data with
modflow.SwnModflow.package_period_frame()
,write_package_period()
,flopy_package_period()
, andset_package_obj()
(#74)
Other changes
- Better
from_swn_flopy
performance (#57) - Change
swn.spatial.find_location_pairs()
addingall_pairs
andexclude_branches
parameters (#68)
Deprecations
swn.spatial.get_sindex()
(#58)swn.spatial.wkt_to_dataframe()
,swn.spatial.wkt_to_geodataframe()
,swn.spatial.wkt_to_geoseries()
(#70)
Hydrosphere - Freshwater and Hydrology
- Python
Published by mwtoews almost 2 years ago
Surface water network - Version 0.5
Released 20 July 2022
Breaking changes
- Minimum requirements are Python 3.7, pandas 1.2 (#38)
- Add outside segnum to modflow if it is downstream from others (#50)
- Change behaviour of
SurfaceWaterNetwork.set_diversions()
which by default will now match to the closest segment line (#52)
New things
- Add
SurfaceWaterNetwork.locate_geoms()
method (#41, #48, #51) - Add
run
option totopnet2ts()
, improve error messages (#44) - Add routing methods:
SurfaceWaterNetwork.route_segnums()
,modflow.SwnModflow.route_reaches()
, andmodflow.SwnMf6.route_reaches()
(#45) - Add
spatial
module functions:find_location_pairs()
andlocation_pair_geoms()
(#46) - Add methods
modflow.SwnModflow.get_location_frame_reach_info()
andmodflow.SwnMf6.get_location_frame_reach_info()
(#49) - Implement diversions for MODFLOW6 (#54)
Other changes
- Add packing dependency to check package version (#37)
- Convert class attributes to properties for
modflow.SwnModflow.segment_data
andsegment_data_ts
(#42) - Convert class attributes to properties for
modflow.SwnMf6.segments
,diversions
, andreaches
(#43) - Rename
SurfaceWaterNetwork.query()
→gather_segnums()
; showDeprecationWarning
with former method (#47) - Move project metadata to
pyproject.toml
, add a few optional dependencies (#53)
Hydrosphere - Freshwater and Hydrology
- Python
Published by mwtoews almost 3 years ago
Surface water network - Version 0.4
Released 20 October 2021
Breaking changes
- Change
SurfaceWaterNetwork(lines.geometry)
→SurfaceWaterNetwork.from_lines(lines.geometry)
- Change
MfSfrNetwork(n, m, ...)
→SwnModflow.from_swn_flopy(n, m)
- Legacy
modflow.MfSfrNetwork
kept, but will be dropped by version 0.6
New things
- Add
.to_pickle()
and.from_pickle()
methods to core classes - Support MODFLOW 6 models with
modflow.SwnMf6
(#12) - Add
SurfaceWaterNetwork.segments_series()
andpair_segments_frame()
methods (#15) - Add methods for setting stream bed elevations (#27)
- Add
compat
module for compatibility - Add Sphinx documentation, with doctests (#18)
Other changes
- Improve performance of
SurfaceWaterNetwork.from_lines()
(#33) - Add
mult
multiplier totopnet2ts()
- Use declarative configuration for project setup, remove
setup.py
(#35)
Hydrosphere - Freshwater and Hydrology
- Python
Published by mwtoews over 3 years ago