Pywr

Latest version: v1.27.1

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

Scan your dependencies

Page 6 of 7

1.7.2

Miscellaneous

- Release to fix packaging mistake in v1.7.1.

1.7.1

Bug Fixes

- Fixed a bug when using `draw_graph` with a dictionary. (899)
- Fixed a bug when giving non-float values to `RbfProfileParameter`. (897)
- Improved handling of isolated nodes in `draw_graph` when using JSON data. (895)

1.7.0

New Features

- Improve Jupyter Notebook graphing functionality. (868, 885)
- Added `OffsetParameter`. (874)
- Added `PywrRandomGenerator` for use with the Platypus optimisation library. (867, 892)
- Added `RbfProfileParameter`. (873)
- Changed the signature of recorder aggregation functions to better catch exceptions. (879)

Bug Fixes

- Removed unreachable code when CSV dataframes. (880)
- Fixed incorrect parsing of `position` keyword in several nodes. (884)

Miscellaneous

- Added `IPython` to install dependencies. (870)
- Removed optimisation wrapper for `inspyred`. (878)
- Exposed run statistics to optimisation wrapper. (877)
- Added optional dependencies for docs and dev installs. (882)

Documentation

- Added threshold parameters to API documentation. (881)
- Corrected `MeanParameterRecorder`'s docstring. (772)
- Improved docstrings and made consistent argument names for `InterpolatedVolumeParameter` and `InterpolatedFlowParameter`. (890)

1.6.0

New Features

- `AnnualTotalFlowRecorder` now accepts an optional list of factors to scale the flow by. (837)
- `NumpyArrayNodeRecorder` now accepts an optional factor (default=1.0) to scale the flow by. (838, 840)
- Added `UniformDrawdownProfileParameter` (836)
- Added `ControlCurvePiecewiseInterpolatedParameter` as a more general replacement for `PiecewiseLinearControlCurve`. (857)
- Added 'count_nonzero' as an aggregation function for recorders. (866)

Bug Fixes

- Fix bug draw_graph modifying model data when a data dict is given. (832)
- Fix the `__init__` method of `BreakLink`. (850)
- Fix reset of `AbstractNode._prev_flow`. (855)
- Fix a bug calculating of `AggregatedStorage`'s initial volume in multiple scenarios. (854)
- Fix resetting of `AnnualVirtualStorage` volume to maximum volume instead of initial volume. (860)
- Fix cdef type issue in some control curve parameters allowing use with any `AbstractStorage` (instead of just `Storage`). (861)
- Fix registering of `ArrayIndexedScenarioParameter` (863)

Miscellaneous

- Fixed documentation building on tags. (831)
- Updated notebook graph drawing to use d3.v5 and removed IE specific code. (834)
- Add reference to published academic paper. (846)
- `PiecewiseLinearControlCurve` has been marked as deprecated and will be removed in a future version. (857)
- Added examples from the recently published paper. (852)

1.5.0

New Features

- Added `ScenarioDailyProfileParameter` and `ScenarioWeeklyProfileParameter` to provide different profiles per scenario. (802)
- Added `TimestepCountIndexParameterRecorder`, `AnnualCountIndexThresholdRecorder` and `AnnualTotalFlowRecorder` (784)
- Added daily interpolation support to `MonthlyProfileParameter`. (807)
- Added `__contains__` method to `NamedIterator` and `NodeIterator` (813)

Bug fixes

- Fix resetting progress of `ProgressRecorder` (816)
- Fix for `draw_graph` issue error when loading model object that has schematic positions (821)

Miscellaneous

- Removed `FutureWarning` and `UnicodeWarning` warning filters (803)
- Refactored `setup.py` to improve build time dependency handling and specifying build arguments (811)
- Fix deprecated use of `.labels` in the tests (814)
- Fix test warning when incrementing timestep by integers (815)
- Fix duplicated test function names (818)
- Support Python 3.8 (796)
- Refactored the GLPK solvers in to a single extension module. (822)
- Add `.pxd` files to the Pywr's package data so they are distributed. (824)

Documentation

- Fixed some warning and deployment issues with the documentation (771)
- Add missing new line from code-block sections in `json.rst` (817)

1.4.0

New Features

- Added support time-steps based on Pandas offsets (675)
- Added `InterpolatedFlowParameter` (740)
- Added support for `percentile` and `percentileofscore` aggregation functions (777)
- Added `PiecewiseIntegralParameter` (772)
- Added support for including references to Python modules in JSON format (765)
- Added `CurrentYearThresholdParameter` and `CurrentOrdinalDayThresholdParameter` parameters (789)

Bug fixes

- Ensure `comment` key doesn't get passed to Pandas `read_xxx` functions (788)

Documentation

- Added some docs for AggregatedNode (756)

Page 6 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.