close
Skip to content

ENTSO-E: add mathematical expression#3699

Open
sfeilmeier wants to merge 2 commits intodevelopfrom
feature/javaluator-price-expression
Open

ENTSO-E: add mathematical expression#3699
sfeilmeier wants to merge 2 commits intodevelopfrom
feature/javaluator-price-expression

Conversation

@sfeilmeier
Copy link
Copy Markdown
Contributor

  • Adds Javaluator library and wrapper
  • Adds configurable calculateExpression to calculate gross price per period from EPEX spot price and ancillary cost
  • Fallback to x + y as before if no expression is given

Relates to https://community.openems.io/t/info-about-json-format-for-ancillary-costs-in-timeofusetarrif-entsoe/10261/15

- Adds Javaluator library and wrapper
- Adds configurable calculateExpression to calculate gross price per period from EPEX spot price and ancillary cost
- Fallback to x + y as before if no expression is given
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

❌ Patch coverage is 90.00000% with 2 lines in your changes missing coverage. Please review.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3699      +/-   ##
=============================================
+ Coverage      60.16%   60.19%   +0.03%     
  Complexity       106      106              
=============================================
  Files           3234     3235       +1     
  Lines         141962   141977      +15     
  Branches       10446    10447       +1     
=============================================
+ Hits           85404    85454      +50     
+ Misses         53400    53356      -44     
- Partials        3158     3167       +9     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

this.priceProvider.getMarketPrices().subscribe(this.onNewPrices);
this.priceProvider.getUpdateState().subscribe(this.onUpdateEvent);

this.priceCalculator = new PriceCalculator(config.calculateExpression());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should make sure to throw an exception here if the expression is invalid.
WIthout that, the exception is thrown a lot of times at every price upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants