-
Notifications
You must be signed in to change notification settings - Fork 2
add writing capability for PSP files #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: devel
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds write capability to the PSP (Phase-Space Protocol) file I/O module, complementing the existing read functionality. The implementation includes support for writing all components of a PSP file, with a new write() method and supporting helper functions for header and data serialization.
Key changes:
- Added
write()method to enable writing PSP files (currently supportscomp='all'only) - Implemented helper functions for writing primary headers, component headers, and component data
- Enhanced component reading to support
comp='all'mode for reading all components at once - Added
_to_python()utility to convert numpy types to native Python types for YAML serialization
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
This is not yet implemented for SPL files; it might be nice to extend the functionality there too. |
New feature: writing of PSP files.