Skip to content

Filter simulation CSV to comparison signals only#31

Merged
AnHeuermann merged 1 commit intomainfrom
smaller-csv
Mar 18, 2026
Merged

Filter simulation CSV to comparison signals only#31
AnHeuermann merged 1 commit intomainfrom
smaller-csv

Conversation

@AnHeuermann
Copy link
Member

Issue

Some models like Modelica.Electrical.Analog.Examples.Lines.LightningSegmentedTransmissionLine have huge results and need forever to save the CSV file.

Changes

Pass the list of signals to be compared (from comparisonSignals.txt or the reference CSV columns) to run_simulate before solving, so that only the relevant observed variables are written to disk. This avoids serialising thousands of algebraic variables when only a handful are actually verified.

compare_with_reference gains a signals keyword that accepts the pre-resolved list, skipping the redundant file/CSV read it would otherwise perform itself.

Pass the list of signals to be compared (from comparisonSignals.txt or the
reference CSV columns) to run_simulate before solving, so that only the
relevant observed variables are written to disk. This avoids serialising
thousands of algebraic variables when only a handful are actually verified.

compare_with_reference gains a signals keyword that accepts the pre-resolved
list, skipping the redundant file/CSV read it would otherwise perform itself.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@AnHeuermann AnHeuermann self-assigned this Mar 18, 2026
@AnHeuermann AnHeuermann enabled auto-merge (squash) March 18, 2026 16:41
@AnHeuermann AnHeuermann merged commit 17ef964 into main Mar 18, 2026
3 checks passed
@AnHeuermann AnHeuermann deleted the smaller-csv branch March 18, 2026 16:53
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.

1 participant