Skip to content

Adding H5MDWriter to H5MD.py #2866

@edisj

Description

@edisj

Is your feature request related to a problem?

Currently in my pull request (PR#2787), we've only implemented an H5MD file reader. I'd like to implement a writer as well using H5PY's libraries for writing HDF5 files. H5MD files follow specific rules for the structure of groups and datasets. There's already a package, pyh5md, that can write H5MD files nicely, but it's no longer being maintained by its author, so we've decided to stick to H5PY for writing the files.

Describe the solution you'd like

We've been given permission from Pierre de Buyl, the author of pyh5md, to borrow code from his library and implement it into H5MDWriter. I've already begun a draft that's mostly working (uploaded to my github here), where I modeled it after NCDFWriter and added/tweaked code from pyh5md. I would like to open a pull request as soon as the reader is merged.

Describe alternatives you've considered

We could write the writer from scratch without using pyh5md, but that sounds a lot harder.

Additional context

H5MD format
NCDFWriter - the writer I used as a template to write mine
pyh5md code - used TimeElement class, create_box(), default_chunks(), and element()

Metadata

Metadata

Assignees

Labels

Component-WritersFormat-H5MDhdf5-based H5MD trajectory formatNSF REUNSF Research Experience for Undergraduates project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions