|
2 | 2 |
|
3 | 3 | ## Summary |
4 | 4 |
|
5 | | -<!-- Here goes a general summary of what this release is about --> |
| 5 | +This release ships many small improvements and bug fixes to `Quantity`s. It also depends on [channels](https://github.com/frequenz-floss/frequenz-channels-python/) v0.16.0, so users must update the dependency too. |
6 | 6 |
|
7 | 7 | ## Upgrading |
8 | 8 |
|
9 | | -<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with --> |
10 | | - |
11 | | -- `Channels` has been upgraded to version 0.16.0, for information on how to upgrade visit https://github.com/frequenz-floss/frequenz-channels-python/releases/tag/v0.16.0 |
| 9 | +- `Channels` has been upgraded to version 0.16.0, for information on how to upgrade please read the [channels v0.16.0 release notes](visit https://github.com/frequenz-floss/frequenz-channels-python/releases/tag/v0.16.0). |
12 | 10 | - `Quantity` objects are no longer hashable. This is because of the pitfalls of hashing `float` values. |
13 | 11 |
|
14 | 12 | ## New Features |
15 | 13 |
|
16 | 14 | - Quantities |
17 | 15 |
|
| 16 | + * Add support for the unary negative operator (negation of a quantity). |
18 | 17 | * Add `abs()`. |
19 | 18 | * Add a `isclose()` method on quantities to compare them to other values of the same type. Because `Quantity` types are just wrappers around `float`s, direct comparison might not always be desirable. |
20 | 19 | * Add `zero()` constructor (which returns a singleton) to easily get a zero value. |
21 | 20 | * Add multiplication by `Percentage` types. |
22 | 21 | * Add a new quantity class `Frequency` for frequency values. |
| 22 | + * Add a new quantity class `Temperature` for temperature values. |
23 | 23 |
|
24 | | -- `FormulaEngine` arithmetics now supports scalar multiplication with floats and addition with Quantities |
25 | | -- Add a new method for streaming average temperature values for the battery pool. |
| 24 | +- `FormulaEngine` arithmetics now supports scalar multiplication with `float`s and addition with `Quantity`s. |
| 25 | +- Add a new `temperature` method for streaming average temperature values for the battery pool. |
26 | 26 |
|
27 | 27 | ## Bug Fixes |
28 | 28 |
|
29 | 29 | - Fix formatting issue for `Quantity` objects with zero values. |
30 | | -- Fix formatting isuse for `Quantity` when the base value is float.inf or float.nan. |
| 30 | +- Fix formatting issue for `Quantity` when the base value fulfills `math.isinf()` or `math.isnan()`. |
31 | 31 | - Fix clamping to 100% for the battery pool SoC scaling calculation. |
32 | | - |
33 | | -<!-- Here goes notable bug fixes that are worth a special mention or explanation --> |
| 32 | +- Fix indexing for empty `MovingWindow`s (now it properly raises an `IndexError`). |
0 commit comments