Skip to content

Add ability to save a log to an HDF5#17

Merged
tuckermcclure merged 5 commits into
mainfrom
tucker/save-log-to-hdf5
Mar 16, 2026
Merged

Add ability to save a log to an HDF5#17
tuckermcclure merged 5 commits into
mainfrom
tucker/save-log-to-hdf5

Conversation

@tuckermcclure
Copy link
Copy Markdown
Member

@tuckermcclure tuckermcclure commented Mar 12, 2026

This adds save_log_to_hdf5 to allow the user to save their BasicLog as an HDF5 file after simulation is over. The resulting HDF5 file is the same. If HDF5Vectors.copy_to_hdf5_vector is faster than filling in an HDF5Vector one piece at a time, then this ought to benefit from it. Regardless, the ability to save a log is desirable.

I added a unit test to make sure the resulting files were the same for the control system demo.

This actually works without the corresponding PR for HDF5Vectors; that PR isn't required but just make things much faster for key cases.

I also tidied up some dead code/comments and added some docstrings along the way.

@tuckermcclure tuckermcclure merged commit 44da1ba into main Mar 16, 2026
3 checks passed
@tuckermcclure tuckermcclure deleted the tucker/save-log-to-hdf5 branch March 16, 2026 16:44
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