Skip to content

Conversation

@efredriksson-modelon
Copy link
Collaborator

This MR adds the main result reader that can delegate.

It is was not possible to re-use the data loaded during delegation setup for both cases of delegation. The reason is they use different implementations of the delayed loading which returns different results. For example what is expected to be the full data vs a file position pointer, 'data_3' is different for the two implementations in this way.

So, instead of trying to re-use it for one of the implementations we can instead try to minimize the amount of data read during the delegation setup. This is done by using the delayed loader for the consolidated result and add support to it to not load in any data_4 (we only need to ask for 'data_3' and 'data_4' other data will then be ignored entirely).

Copy link
Collaborator

@PeterMeisrimelModelon PeterMeisrimelModelon left a comment

Choose a reason for hiding this comment

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

A few comments, largely around documentation, changes look good!

Also, I miss some test using ResultReaderBinaryMat for a simulation results produced using dynamic_diagnostics.

Also wondering if we should have some type of regression tests on the actual instances of delegates as to properly test/verify the different if branches in delegation selection.

@efredriksson-modelon
Copy link
Collaborator Author

@PeterMeisrimelModelon Thanks for the review. I have added new commits for the changes (and missed force push for the docstrings). I will squash things before merging.

…te either to 'default' or new consolidated implementation

docs: fix missing args

fix: remove delayed_trajectory_loading argument from ResultReaderBinaryMat

chore: add clarifying comment on when using which result reader

test: add check that the delegator works when simulating with dynamic diagnostics
It is not possible to re-use the data loaded for both cases of delegation. The reason is they use different implementations of the delayed loading which returns different results, what is expected to be the full data vs a file position pointer. For example 'data_3' is different for the two implementations. So, instead of trying to re-use it for one of the implementations we can instead try to minimize the amount of data handling for doing the delegation. This is done by using the delayed loader for the consolidated result and add support to it to not load in any data_4.
@efredriksson-modelon efredriksson-modelon merged commit e9faa91 into master Jan 14, 2026
2 checks passed
@efredriksson-modelon efredriksson-modelon deleted the dev-ef-mat-load-delegation branch January 14, 2026 09:41
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.

3 participants