Pywr

Latest version: v1.27.1

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

Scan your dependencies

Page 4 of 7

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)

1.15.0

New Features

- Performance improvements for the GLPK solvers. Several new options have been added to the GLPK solvers that
reduce the number of linear programme updates required each time-step. These options are currently off by default,
but can be enabled by either passing keyword arguments to the solver instances or via environment variables.
(912, 983, 985)
- Update constant and fixed flows only once during reset (`PYWR_SOLVER_GLPK_FIXED_FLOWS_ONCE=True`)
- Update constant and fixed costs only once during reset (`PYWR_SOLVER_GLPK_FIXED_COSTS_ONCE=True`)
- Update constant and fixed aggregated node factors only once during reset (`PYWR_SOLVER_GLPK_FIXED_FACTORS_ONCE=True`)
- Improve memory usage in `DataFrameParameter` when running a subset of the defined scenarios. The parameter now only
retains the data for the subset of scenarios required for the simulation instead of all scenarios. (981)
- Update `MonthlyProfileParameter` and `RbfProfileParameter` to allow variable lower and upper bounds to be defined. (986)

Bug Fixes

- Fix use of deprecated `np.int` and `np.float` types. (982)

1.14.0

New Features

- Allow target flow-duration curves to be supplied in an external file for `FlowDurationDeviationRecorder`. (977)
- Allow only one of upper or lower targets to be specified in `FlowDurationDeviationRecorder`. (977)

Bug Fixes

- Fix bug where event recorders were not registered and could not be loaded from JSON. (976)

1.13.1

Bug Fixes

- Allow loading normalised KDE and `NumpyArrayNormalisedStorageRecorder` recorder from JSON. (974)

Page 4 of 7

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.