Fix battery pool SoC calculation - #3
Open
matthias-wende-frequenz wants to merge 64 commits into
Open
Conversation
Signed-off-by: Christian Parpart <christian@parpart.family>
…s metric Signed-off-by: Christian Parpart <christian@parpart.family>
Signed-off-by: Christian Parpart <christian@parpart.family>
Signed-off-by: Christian Parpart <christian@parpart.family>
Signed-off-by: Jack <jack.herrmann@gmx.de>
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.18 to 9.1.19. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@9.1.18...9.1.19) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.18 to 9.1.19. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/squidfunk/mkdocs-material/releases">mkdocs-material's releases</a>.</em></p> <blockquote> <h2>mkdocs-material-9.1.19</h2> <ul> <li>Added support for MkDocs 1.5+</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5699">#5699</a>: Improve error reporting in social plugin</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG">mkdocs-material's changelog</a>.</em></p> <blockquote> <p>mkdocs-material-9.1.19 (2023-07-18)</p> <ul> <li>Added support for MkDocs 1.5+</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5699">#5699</a>: Improve error reporting in social plugin</li> </ul> <p>mkdocs-material-9.1.18+insiders-4.37.0 (2023-07-07)</p> <ul> <li>Added support for overriding social cards settings per page</li> <li>Added new social card default/only/image layout</li> <li>Improved resilience of optimize and social plugin</li> <li>Fixed rendering bugs for pruned navigation items</li> <li>Fixed jumping of content tabs anchor links when instant loading is enabled</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5676">#5676</a>: Optimize plugin doesn't check for pngquant</li> </ul> <p>mkdocs-material-9.1.18 (2023-07-03)</p> <ul> <li>Updated Danish translations</li> <li>Added support for installing user requirements in Docker image</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5655">#5655</a>: Search separator with lookbehind breaks highlighting</li> </ul> <p>mkdocs-material-9.1.17+insiders-4.36.1 (2023-06-23)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5618">#5618</a>: Date comparison breaking for drafts in blog plugin</li> </ul> <p>mkdocs-material-9.1.17 (2023-06-23)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5633">#5633</a>: Code annotations with nested lists incorrectly mounted</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5628">#5628</a>: Regression in new social plugin configuration scheme</li> </ul> <p>mkdocs-material-9.1.16+insiders-4.36.0 (2023-06-15)</p> <ul> <li>Added support for instant prefetching to speed up slow connections</li> <li>Improved stability of anchor link removal in built-in typeset plugin</li> <li>Improved performance of regular expressions in typeset plugin</li> <li>Removed unnecessary import test for cairosvg in optimize plugin</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5590">#5590</a>: regular expression for anchor link removal too greedy</li> </ul> <p>mkdocs-material-9.1.16 (2023-06-15)</p> <ul> <li>Updated Indonesian translations</li> <li>Ensure scroll bar follows color scheme of operating system</li> </ul> <p>mkdocs-material-9.1.15+insiders-4.35.3 (2023-06-01)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5579">#5579</a>: Abbreviations in headlines filtered by typeset plugin</li> </ul> <p>mkdocs-material-9.1.15+insiders-4.35.2 (2023-05-29)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5555">#5555</a>: Blog plugin crashes when computing readtime for emojis</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/545fb274187ebeeceed6ea209065501777ade03b"><code>545fb27</code></a> Prepare 9.1.19 release</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/1ff2aec06d2b2967d98c075a2b794b4ed2253bfe"><code>1ff2aec</code></a> Updated documentation for line highlighting</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/e897b891258caf719136ae382ec5c9145d5ddcb2"><code>e897b89</code></a> Added support for MkDocs 1.5</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/4bb89266864ad8ac91efe2702b509446af520e61"><code>4bb8926</code></a> Updated dependencies</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/10b150112ea7b0e894419ce3351c17ac9e8e0cd7"><code>10b1501</code></a> Improved error reporting in social plugin</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/b3ade9fd3ac905bc93fb6ccdfdfeeecfed13cd3e"><code>b3ade9f</code></a> Updated dependencies</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/2331aa678bec2122123c5c51f33275fcd5cf4e45"><code>2331aa6</code></a> Fixed linter errors</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/3094b49844936b3ed01737ac2a3c08de97f9de0f"><code>3094b49</code></a> Updated dependencies</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/85fdf2a402ba9746bf89e18c74fb70d2dbb4c42f"><code>85fdf2a</code></a> Updated Premium sponsors</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/0fd163805e2b89c33c503a133d463025713b6818"><code>0fd1638</code></a> Updated Insiders changelog</li> <li>Additional commits viewable in <a href="https://github.com/squidfunk/mkdocs-material/compare/9.1.18...9.1.19">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Bumps [polars](https://github.com/pola-rs/polars) from 0.18.7 to 0.18.8. - [Release notes](https://github.com/pola-rs/polars/releases) - [Commits](pola-rs/polars@py-0.18.7...py-0.18.8) --- updated-dependencies: - dependency-name: polars dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [polars](https://github.com/pola-rs/polars) from 0.18.7 to 0.18.8. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pola-rs/polars/commit/05fa3448268b08e75092b665979220465b9ee8c5"><code>05fa344</code></a> python polars 0.18.8 (<a href="https://redirect.github.com/pola-rs/polars/issues/9989">#9989</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/90df2bc9c090c60f6776e84f8a24891ddfc8cb72"><code>90df2bc</code></a> feat(python): Name transpose from column (<a href="https://redirect.github.com/pola-rs/polars/issues/9846">#9846</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/b7f6c7a73365814730e1800f949c6b69259ae933"><code>b7f6c7a</code></a> feat(rust,python): add use_earliest argument to truncate (<a href="https://redirect.github.com/pola-rs/polars/issues/9899">#9899</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/a70ecbfc13e69336616ebedf6761a233b61349c1"><code>a70ecbf</code></a> fix(rust, python): fix incorrect state in projection pushdown with joins (<a href="https://redirect.github.com/pola-rs/polars/issues/9987">#9987</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/980dac2452ed9af19c86b53c127d85b85aeb5549"><code>980dac2</code></a> feat(python): adds <code>SQRT</code>, <code>CBRT</code>, <code>PI</code> functions to <code>SQLContext</code> (<a href="https://redirect.github.com/pola-rs/polars/issues/9936">#9936</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/3f34ad162f6b22ea7d62152e510db6001c9c15e6"><code>3f34ad1</code></a> feat(rust, python): Let qcut create evenly spaced probabilities (<a href="https://redirect.github.com/pola-rs/polars/issues/9960">#9960</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/52f6449457307f75fbbc2c2a6db41a936545ad34"><code>52f6449</code></a> chore: Update autolabeler again (<a href="https://redirect.github.com/pola-rs/polars/issues/9984">#9984</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/10f3c069f6e8df8cefe26019fec6276188bdc067"><code>10f3c06</code></a> refactor(python): use original <code>Instruction</code> objects during bytecode translat...</li> <li><a href="https://github.com/pola-rs/polars/commit/9ca9c2a4ada78e46a55a89a22b3ec8ef8076da99"><code>9ca9c2a</code></a> feat(python): add freeze_panes option to write_excel (<a href="https://redirect.github.com/pola-rs/polars/issues/9974">#9974</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/977d7e548e7f6039a467036a2d8692a8df477392"><code>977d7e5</code></a> feat(python): initial support for parsing the set of <code>jump</code> bytecode instruct...</li> <li>Additional commits viewable in <a href="https://github.com/pola-rs/polars/compare/py-0.18.7...py-0.18.8">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
imul is implemented only for `Percentage` because, all other multiplications that we have produce outputs of a new type, which is not possible with imul. With this usage like this becomes possible: ```python power = Power.from_watts(1000.0) power += Power.from_watts(3.2) ``` Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
…s#527) imul is implemented only for `Percentage` because, all other multiplications that we have produce outputs of a new type, which is not possible with imul. With this usage like this becomes possible: ```python power = Power.from_watts(1000.0) power += Power.from_watts(3.2) ```
Bumps [types-protobuf](https://github.com/python/typeshed) from 4.23.0.1 to 4.23.0.2. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-protobuf dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [types-protobuf](https://github.com/python/typeshed) from 4.23.0.1 to 4.23.0.2. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/python/typeshed/commits">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
This patch is done in order to decrease the size of the `_formula_engine.py` file. Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
We can now use constants for all formula engine operations. **Example:** ```python scaled_grid_power = (microgrid.logical_meter().grid_power * 5).build() ```
Closes frequenz-floss#532 Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Closes frequenz-floss#531 Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
This allows us to compare floating point values without having to use the equality operator. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
These classes were redefining all parameters, and that had the risk of going out of sync with the fields in the base class. This PR ties the wrappers with their base classes, such that it is easy to identify changes to the base classes, without updates to the wrappers. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
In most component graph configs, batteries would be attached to inverters and the inverters would be meters. But there might be some cases where there are no meters, and we'll have to read data from the inverters. This commit enables such test configs, that can be used in tests that use the MockMicrogrid. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
This is the grid power test for component configs without a grid side meter, so it will have to read values from the inverter, to calculate the grid power. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.19 to 9.1.21. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@9.1.19...9.1.21) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.1.19 to 9.1.21. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/squidfunk/mkdocs-material/releases">mkdocs-material's releases</a>.</em></p> <blockquote> <h2>mkdocs-material-9.1.21</h2> <ul> <li>Fixed MkDocs 1.4 compat issue in social plugin (9.1.20 regression)</li> </ul> <h2>mkdocs-material-9.1.20</h2> <ul> <li>Updated Sanskrit translations</li> <li>Fixed deprecation warnings for social plugin</li> </ul> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG">mkdocs-material's changelog</a>.</em></p> <blockquote> <p>mkdocs-material-9.1.21 (2023-07-27)</p> <ul> <li>Fixed MkDocs 1.4 compat issue in social plugin (9.1.20 regression)</li> </ul> <p>mkdocs-material-9.1.20 (2023-07-27)</p> <ul> <li>Fixed deprecation warnings for social plugin</li> </ul> <p>mkdocs-material-9.1.19 (2023-07-18)</p> <ul> <li>Added support for MkDocs 1.5+</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5699">#5699</a>: Improve error reporting in social plugin</li> </ul> <p>mkdocs-material-9.1.18+insiders-4.37.0 (2023-07-07)</p> <ul> <li>Added support for overriding social cards settings per page</li> <li>Added new social card default/only/image layout</li> <li>Improved resilience of optimize and social plugin</li> <li>Fixed rendering bugs for pruned navigation items</li> <li>Fixed jumping of content tabs anchor links when instant loading is enabled</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5676">#5676</a>: Optimize plugin doesn't check for pngquant</li> </ul> <p>mkdocs-material-9.1.18 (2023-07-03)</p> <ul> <li>Updated Danish translations</li> <li>Added support for installing user requirements in Docker image</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5655">#5655</a>: Search separator with lookbehind breaks highlighting</li> </ul> <p>mkdocs-material-9.1.17+insiders-4.36.1 (2023-06-23)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5618">#5618</a>: Date comparison breaking for drafts in blog plugin</li> </ul> <p>mkdocs-material-9.1.17 (2023-06-23)</p> <ul> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5633">#5633</a>: Code annotations with nested lists incorrectly mounted</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5628">#5628</a>: Regression in new social plugin configuration scheme</li> </ul> <p>mkdocs-material-9.1.16+insiders-4.36.0 (2023-06-15)</p> <ul> <li>Added support for instant prefetching to speed up slow connections</li> <li>Improved stability of anchor link removal in built-in typeset plugin</li> <li>Improved performance of regular expressions in typeset plugin</li> <li>Removed unnecessary import test for cairosvg in optimize plugin</li> <li>Fixed <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5590">#5590</a>: regular expression for anchor link removal too greedy</li> </ul> <p>mkdocs-material-9.1.16 (2023-06-15)</p> <ul> <li>Updated Indonesian translations</li> <li>Ensure scroll bar follows color scheme of operating system</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/98a009b02a8c76cdf46ec4485260730ebb4a127c"><code>98a009b</code></a> Prepare 9.1.21 release</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/feef806a2dcc9dd1e73ca262ce52d48f05c2cc16"><code>feef806</code></a> Bumped MkDocs to 1.5.0 to mitigate error in social plugin</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/39580db0ac6d7006498c8c253d8e54b0354d23e4"><code>39580db</code></a> Updated changelog</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/08ab76fd0596c68bdc6ea0c7f0c1f8124435b40b"><code>08ab76f</code></a> Prepare 9.1.20 release</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/068472a6f7a78d7643aedff90884da1df3300082"><code>068472a</code></a> Documentation</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/772421d16dc636beb99740b2e682741ccda32249"><code>772421d</code></a> Merge pull request <a href="https://redirect.github.com/squidfunk/mkdocs-material/issues/5759">#5759</a> from kamilkrzyskow/social-patch2</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/f548d799911fc63699d665c70f76f0c1479ed97b"><code>f548d79</code></a> Updated social plugin to use <code>theme.custom_dir</code></li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/3e8faa0fdba72454f0297d06c21bbde75baa10a2"><code>3e8faa0</code></a> Updated dependencies</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/b72adf300b0ff71a7c41f36c746faf688956c3ea"><code>b72adf3</code></a> Updated documentation for custom cookies</li> <li><a href="https://github.com/squidfunk/mkdocs-material/commit/ea9446e6cb181880eceef8e10fc8e75b76a703b7"><code>ea9446e</code></a> Merge branch 'master' of github.com:squidfunk/mkdocs-material</li> <li>Additional commits viewable in <a href="https://github.com/squidfunk/mkdocs-material/compare/9.1.19...9.1.21">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
From frequenz-floss#485 Also resolve conflicts. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
The name `temperature_max` of a single battery indicates that a single battery can have multiple temperatures. This is not the case for all batteries, and hence can't be part of the high level API. In the high level APIs, there should be just one temperature value per battery. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
This would just stream average of average temperatures of all batteries in a pool. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Bumps [polars](https://github.com/pola-rs/polars) from 0.18.8 to 0.18.9. - [Release notes](https://github.com/pola-rs/polars/releases) - [Commits](pola-rs/polars@py-0.18.8...py-0.18.9) --- updated-dependencies: - dependency-name: polars dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [polars](https://github.com/pola-rs/polars) from 0.18.8 to 0.18.9. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pola-rs/polars/commit/c1f5dc23b40a5b047390e9821074963fe167756b"><code>c1f5dc2</code></a> python polars 0.18.9 (<a href="https://redirect.github.com/pola-rs/polars/issues/10144">#10144</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/78b51e38a3bd29918230e2bb7423c70c8d8a724e"><code>78b51e3</code></a> chore(rust): update to rustc nightly-2023-07-27 (<a href="https://redirect.github.com/pola-rs/polars/issues/10139">#10139</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/8937f0386628ab93657323791c6d10126ec378c1"><code>8937f03</code></a> chore(python): get test_udfs running on all python versions again (<a href="https://redirect.github.com/pola-rs/polars/issues/10136">#10136</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/6f50fb8ff53fb1a29f3c94479f1a199a1bc38452"><code>6f50fb8</code></a> depr(python): Deprecate parsing string inputs as literals for `when-then-othe...</li> <li><a href="https://github.com/pola-rs/polars/commit/4381c04fb9302d235141c3899e6441fcfc113fb4"><code>4381c04</code></a> depr(python): deprecate "connection_uri" → "connection" param in read/write d...</li> <li><a href="https://github.com/pola-rs/polars/commit/3881d3d45dae19f253532e40420110dd7537bca2"><code>3881d3d</code></a> ci: temporarily turn off fail-fast so that ubuntu tests run (<a href="https://redirect.github.com/pola-rs/polars/issues/10133">#10133</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/9ff9b0a68aa536ac0d48d1abdb58760d6e32e45a"><code>9ff9b0a</code></a> feat(python): suggest map_dict instead of lambda x: DICT[x] (<a href="https://redirect.github.com/pola-rs/polars/issues/10123">#10123</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/f27c9b7ab880bc2e4eaa96b23c866c5b62d45e24"><code>f27c9b7</code></a> fix(rust, python): adjust for null values in str.replace fast path (<a href="https://redirect.github.com/pola-rs/polars/issues/10132">#10132</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/a20724158a05fd86eaffa092447a44d1e7a1fbfc"><code>a207241</code></a> fix(rust, python): clear bit settings in list iteration (<a href="https://redirect.github.com/pola-rs/polars/issues/10131">#10131</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/28dad4dc9eb7836652294a2ec27b0f419b9357c6"><code>28dad4d</code></a> fix(rust, python): use row-encoded for struct::is_sorted (<a href="https://redirect.github.com/pola-rs/polars/issues/10129">#10129</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pola-rs/polars/compare/py-0.18.8...py-0.18.9">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Bumps [polars](https://github.com/pola-rs/polars) from 0.18.9 to 0.18.11. - [Release notes](https://github.com/pola-rs/polars/releases) - [Commits](pola-rs/polars@py-0.18.9...py-0.18.11) --- updated-dependencies: - dependency-name: polars dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [polars](https://github.com/pola-rs/polars) from 0.18.9 to 0.18.11. <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pola-rs/polars/commit/78460fea859ec9fe17a298d3013687217686252e"><code>78460fe</code></a> fix(rust, python): correct struct null counts (<a href="https://redirect.github.com/pola-rs/polars/issues/10142">#10142</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/f3e46da47e170db2f87c3bb00a916bb023e6b6d3"><code>f3e46da</code></a> feat(rust): added gcs to gcp cloud schema in polars-core::cloud <a href="https://redirect.github.com/pola-rs/polars/issues/10206">#10206</a>. (<a href="https://redirect.github.com/pola-rs/polars/issues/10207">#10207</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/b661ac66de0cc9314ed6da4b720bacb10d1d101f"><code>b661ac6</code></a> python polars 0.18.11 (<a href="https://redirect.github.com/pola-rs/polars/issues/10217">#10217</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/f4f3f98beab4ee862400fb4c8d78d6a8bff9239d"><code>f4f3f98</code></a> fix(rust, python): no cse in groupby until fixed (<a href="https://redirect.github.com/pola-rs/polars/issues/10216">#10216</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/1c0ad40a272b311bbd6b0fb40e20f2bacad26c54"><code>1c0ad40</code></a> fix(python): avoid false positives from multiple <code>RETURN_VALUE</code> ops when chec...</li> <li><a href="https://github.com/pola-rs/polars/commit/f00b47d3dcae5625ab64d55ea71427f0398a278e"><code>f00b47d</code></a> refactor(python): Improve deprecation utils (<a href="https://redirect.github.com/pola-rs/polars/issues/10167">#10167</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/459379b6941f0c84ad432e146bd3c31c04cda99f"><code>459379b</code></a> python polars 0.18.10 (<a href="https://redirect.github.com/pola-rs/polars/issues/10198">#10198</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/e3437ec5ccaac1564b0059d78d582dd663178865"><code>e3437ec</code></a> fix(rust, python): fix <code>is_in</code> on empty series (<a href="https://redirect.github.com/pola-rs/polars/issues/10195">#10195</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/f8c4c4eea8203db581dece729550d3ab0aedbbba"><code>f8c4c4e</code></a> fix(rust, python): fix cse windows (<a href="https://redirect.github.com/pola-rs/polars/issues/10197">#10197</a>)</li> <li><a href="https://github.com/pola-rs/polars/commit/47b91ab3d37228dfb280aa1cc84e419b446dac56"><code>47b91ab</code></a> fix(rust, python): block predicate pushdown is_in and null producing … (<a href="https://redirect.github.com/pola-rs/polars/issues/10194">#10194</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pola-rs/polars/compare/py-0.18.9...py-0.18.11">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details>
Having them mutating the objects in-place is not the best option as number are assumed to be immutable in Python. If we make them mutable, then bad things will happen if they are used as default arguments in functions, or if we want to provide a zero singleton for example. We also mention explicitly now that Quantities are immutable. This partially reverts 1043360 (the tests are kept). Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
It is a very common case which becomes very verbose, and it includes unit information that is completely irrelevant (zero is zero in any unit). Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
It is a very common case which becomes very verbose, and it includes unit information that is completely irrelevant (zero is zero in any unit).
Co-authored-by: Leandro Lucarella <luca@llucax.com> Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
matthias-wende-frequenz
force-pushed
the
battery_pool_soc
branch
2 times, most recently
from
August 2, 2023 08:02
640d5fb to
e32ac24
Compare
Fix the SoC calculation such that it never exceeds 100%. Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
Signed-off-by: Matthias Wende <matthias.wende@frequenz.com>
matthias-wende-frequenz
force-pushed
the
battery_pool_soc
branch
from
August 2, 2023 08:10
e32ac24 to
83888c5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TemperaturequantityQuantityobjectsQuantityobjects asfloatsisclose()method forQuantityobjectsTemperaturequantitytemperature_maxfields totemperatureTemperatureMetricswithSample[Temperature]battery_pool.temperature