You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+4-19Lines changed: 4 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,31 +2,16 @@
2
2
3
3
## Summary
4
4
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.
5
+
<!-- Here goes a general summary of what this release is about -->
6
6
7
7
## Upgrading
8
8
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).
10
-
-`Quantity` objects are no longer hashable. This is because of the pitfalls of hashing `float` values.
9
+
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
11
10
12
11
## New Features
13
12
14
-
- Quantities
15
-
16
-
* Add support for the unary negative operator (negation of a quantity).
17
-
* Add `abs()`.
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.
19
-
* Add `zero()` constructor (which returns a singleton) to easily get a zero value.
20
-
* Add multiplication by `Percentage` types.
21
-
* Add a new quantity class `Frequency` for frequency values.
22
-
* Add a new quantity class `Temperature` for temperature values.
23
-
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.
13
+
<!-- Here goes the main new features and examples or instructions on how to use them -->
26
14
27
15
## Bug Fixes
28
16
29
-
- Fix formatting issue for `Quantity` objects with zero values.
30
-
- Fix formatting issue for `Quantity` when the base value fulfills `math.isinf()` or `math.isnan()`.
31
-
- Fix clamping to 100% for the battery pool SoC scaling calculation.
32
-
- Fix indexing for empty `MovingWindow`s (now it properly raises an `IndexError`).
17
+
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->
0 commit comments