Add EDF editing/writing capabilities #18
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the ability to edit an EDF file or create a new one from scratch and write it out to disk.
You can load an existing EDF file and change signal names or values then write the file back out.
Or you can create a brand new EDF file and add signals and signal values directly.
Please note - this was written entirely by Claude 3.5 and Claude 4 using Cursor AI.
I only reviewed the code briefly for maintainability.
It is thoroughly tested though and it does work as advertised.
I need this functionality for my app, but wanted to contribute it back to the source if it's useful for anyone else.
I've added some example files to the repo that can act as documentation on how to use the new functionality.
If this is something you want to add to the gem, we can try to get it cleaned up and into a state that you're happy to accept. Otherwise, I'm happy to just host my own version for my needs and keep it separate.
Thanks for creating this gem, it's been really helpful!