Skip to content

Add Single Channel datasource for dynamic simulation input#3448

Merged
sfeilmeier merged 2 commits intoOpenEMS:developfrom
Sn0w3y:simulate_channel
Dec 11, 2025
Merged

Add Single Channel datasource for dynamic simulation input#3448
sfeilmeier merged 2 commits intoOpenEMS:developfrom
Sn0w3y:simulate_channel

Conversation

@Sn0w3y
Copy link
Copy Markdown
Collaborator

@Sn0w3y Sn0w3y commented Nov 27, 2025

Introduces SimulatorDatasourceSingleChannel, allowing external setting of simulation values via a writable channel. Updates documentation to describe available datasource types and usage. Refactors AbstractCsvDatasource to AbstractDatasource and updates references. Removes unused timeDelta from SingleDirect datasource configuration and tests.

Based on #3313

Co-Authored-By: @parapluplu

Introduces SimulatorDatasourceSingleChannel, allowing external setting of simulation values via a writable channel. Updates documentation to describe available datasource types and usage. Refactors AbstractCsvDatasource to AbstractDatasource and updates references. Removes unused timeDelta from SingleDirect datasource configuration and tests.
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 27, 2025

Codecov Report

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

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #3448      +/-   ##
=============================================
+ Coverage      59.62%   59.64%   +0.02%     
  Complexity       112      112              
=============================================
  Files           2894     2896       +2     
  Lines         124658   124694      +36     
  Branches        9343     9345       +2     
=============================================
+ Hits           74318    74356      +38     
+ Misses         47522    47516       -6     
- Partials        2818     2822       +4     
🚀 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.

Added comprehensive unit tests for getValues, getKeys, getTimeDelta, null value handling, and channel accessors in SimulatorDatasourceSingleChannelImplTest. Improved type safety in getValues implementation by explicitly casting the value to the generic type.
@parapluplu
Copy link
Copy Markdown
Contributor

You used #3313 as base for this, didn't you? I'll close my merge request in favor of yours :)

@Sn0w3y
Copy link
Copy Markdown
Collaborator Author

Sn0w3y commented Nov 27, 2025

You used #3313 as base for this, didn't you? I'll close my merge request in favor of yours :)

I already wrote it in the Description! :) I did ! :) Thanks again !

@parapluplu
Copy link
Copy Markdown
Contributor

I'm blind, seeing it now that it's in the description. thanks :D

@parapluplu
Copy link
Copy Markdown
Contributor

I love the documentation you've added 🤩

@Sn0w3y
Copy link
Copy Markdown
Collaborator Author

Sn0w3y commented Nov 27, 2025

I love the documentation you've added 🤩

Thanks! As many "noob" Users keep complaining i thought it would be good..

@Sn0w3y
Copy link
Copy Markdown
Collaborator Author

Sn0w3y commented Dec 1, 2025

@sfeilmeier i guess this is ready to merge :)

@da-Kai da-Kai requested a review from sfeilmeier December 1, 2025 17:18
@sfeilmeier sfeilmeier merged commit 118e411 into OpenEMS:develop Dec 11, 2025
7 checks passed
@Sn0w3y Sn0w3y deleted the simulate_channel branch December 11, 2025 13:20
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.

4 participants