Wrapdisc

Latest version: v2.5.0

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

Scan your dependencies

Page 2 of 4

2.2.0

- Use an efficient encoding of length 0 for `GridVar` of length 1. Previously its encoding length was always 1.

2.1.2

- Support `dict` input for `ChoiceVar` and `GridVar` via its explicit internal conversion to `tuple`.

2.1.1

- Return NaN if a NaN is present in the encoded array. This was found to be the case with `scipy.optimize.dual_annealing`.

2.1.0

- Update various variable `bounds` to use string representations when dividing and adding floats. This prevents errors such as for example with `QuniformVar(0, 99.9, 0.1)` decoding its encoded boundary values. It is unclear how best to address floating point issues.

2.0.0

- An initial guess (`x0`) can now be encoded using `wrapped_objective.encode(your_initial_decoded_guess)`. The usage example in the readme has been updated.
- The `__getitem__` syntax has been removed in order to prevent ambiguity. The `wrapped_objective.decode` and `wrapped_objective.encode` methods can be used. This change breaks compatibility with v1.x.x.

1.3.3

- Added a Limitations section to the readme.

Page 2 of 4

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.