Pywr

Latest version: v1.24.0

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

Scan your dependencies

Page 2 of 6

1.17.0

New Features

- Networks with missing connections will now more reliably raise `ModelStructureError`. (1025)
- Improve GLPK API (1021):
- GLPK errors are now handled by default by raising `GLPKInternalError`.
- NaN checks are performed by default.
- Added runtime option to use "unsafe" API with no error or NaN handling (see new documentation).
- Added documentation describing error handling changes.
- Improve handling of NaN values in `Storage.current_pc` (i.e. when `max_volume` is zero).
- Added a new method `Storage.get_current_pc` to guarantee a finite value.
- Added `min_output` to `RectifierParameter`

Miscellaneous

- Documentation improvements:
- `RiverSplitWithGauge` docstring. (1030)
- Added section describing how to use Dataframe checksums. (1028)
- Added `ControlCurveParameter` to API docs. (1027)

1.16.1

Bug Fixes

- Fix internal node names for `PiecewiseLink`. (1024)

1.16.0

New Features

- Supply `initial_volume_pc` in `VirtualStorage` and its subclasses. (1015)
- Add `residual_days` option to `UniformDrawdownProfileParameter`. (1013)

Bug Fixes

- Fix a JSON formatting error in the documentation. (1009)
- Removed a circular import in `pywr.recorders.calibration`. (1012)

Miscellaneous

- Removed some older folders related to Travis. (1016)
- Re-formatted the Python code using the Black formatter and enforced this for future modifications. (1010)

1.15.3

Bug Fixes

- Fix bug where constraints are not applied between `VirtualStorage` and some complex node types (e.g
`PiecewiseLink` and `AggregatedNode`). Previously models would run and silently ignore constraints
that users might reasonably expect to be applied. Now these models will error until a proper fix
is implemented. See issue 1001 to see details and track progress. (1002)

1.15.2

Bug Fixes

- Fix bug with `AggregatedParameter.remove()` and `AggregatedIndexParameter.remove()` methods using the
wrong method internally. (997)

1.15.1

Bug Fixes

- Fix `AnnualTotalFlowRecorder`'s accounting of flow when a timestep ends in the following year. (992)
- Fix divide by zero errors in `NumpyArrayNodeSuppliedRatioRecorder` and `NumpyArrayNodeCurtailmentRatioRecorder`
when the max flow of the parameter they monitor returned zero. (993)
- Fix the load method of `FlowDurationCurveDeviationRecorder` to handle scenario data correctly. (989)

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.