Skip to content

Conversation

@SimonBuechner
Copy link

@SimonBuechner SimonBuechner commented Nov 21, 2025

Changes proposed in this pull request:

@SimonBuechner SimonBuechner marked this pull request as ready for review December 9, 2025 11:03
SimonBuechner and others added 3 commits December 12, 2025 14:58
* _energy_ratio and accordings tests added from corrupted branch

* test adjusted to fixture, renamed to "...energy_ratio..."

* test_parameters comment structure changed

* Update pyrato/parameters.py balance -> ratio

Co-authored-by: Marco Berzborn <mberz@users.noreply.github.com>

* Update pyrato/parameters.py, calculations more efficient

Co-authored-by: Marco Berzborn <mberz@users.noreply.github.com>

* _energy_ratio accepts limits as ndarray, list and tuple.

Docstring adjusted to explain neccessity of two separate EDCs

* ruff compliancy added

* test_energy_ratio_rejects_non_numpy_array_limits adjusted to check fo correct cast of limits input from list

* order corrected in numerator-denominator extraction. Adjusted to return result in cshape

* ruff compliancy, tests added to reject wrong limits type (new)

* _energy_ratio input type documentation

Co-authored-by: Anton Hoyer <156099087+hoyer-a@users.noreply.github.com>

* Apply suggestions from code review

_energy_ratio edc input type pf.TimeData and derived objects changed

Co-authored-by: Anton Hoyer <156099087+hoyer-a@users.noreply.github.com>

* _energy_ratio doc changed: requiring two edcs

* ruff linting

* _energy_ratio docs limit nomenclature

Co-authored-by: Marco Berzborn <mberz@users.noreply.github.com>

* _energy_ratio docstring formulas changed

* docstring examples added, edc-limit-idx separated each according edc

* input check for limiti < signal_length of edc including tests added

* valid limits tests for separate edcs included, tests modified accordingly

* PEP8 compliancy

* PEP8 compliancy

* hoyer-a requested chanes in _energy_ratio tests

* ruff linting

* spelling changes

* hoyer-a requested changes

* renamed test

* changed name test

* adjusted parametrized test to multichannel input signal

* redundant multichannel test removed

* spelling in Docstring

* re-added parametrized multichannel shape test

---------

Co-authored-by: simon.buechner22 <simon.buechner22@campus.tu-berlin.de>
Co-authored-by: Marco Berzborn <mberz@users.noreply.github.com>
Co-authored-by: Anton Hoyer <156099087+hoyer-a@users.noreply.github.com>
@SimonBuechner SimonBuechner moved this from Backlog to Require review in Weekly Planning Dec 12, 2025
SimonBuechner and others added 2 commits January 5, 2026 09:59
Co-authored-by: Anton Hoyer <156099087+hoyer-a@users.noreply.github.com>
Copy link
Member

@hoyer-a hoyer-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now! We should check the example again once #117 and #113 are merged. In the current state it will raise an error.

@github-project-automation github-project-automation bot moved this from Require review to Reviewer Approved in Weekly Planning Jan 16, 2026
@mberz mberz moved this from Reviewer Approved to Require review in Weekly Planning Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Require review

Development

Successfully merging this pull request may close these issues.

3 participants