Porting PyNWB to JavaScript #22
Replies: 1 comment 4 replies
-
@garrettmflynn wow, very cool! Yes, I think the MatNWB approach is the best approach for you here. Another very important question is whether you want to support just reading or reading and writing. Supporting writing is more difficult because you must
If all you really need is read, I think it would be a good idea to limit to that scope up-front and make your life a lot easier. @ln-vidrio is the lead architect of MatNWB, so I think talking to him would be important. For reading, you already have an HDF5 reader, so basically the question is how you could make reading NWB files syntactically easier. In Python, for instance, we allow users to convert DynamicTables into pandas DataFrames. I think it might be useful to do something similar in JS, converting to common data types in that language, but I don't know enough about JS to know what those types would be. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've run some successful tests for reading/writing HDF5 files in the browser (see jsnwb). However, I'm running into issues porting the PyNWB code since it has extensive dependencies on the related HDMF project.
At the end of the day, the goal is to unfold the HDF5 file into an NWBFile object This issue might already be well-documented, but could I get some guidance on how this was handled in the MatNWB library? As well as how the nwb-schema library should fit into all this?
To demonstrate where the project is at, I've published an demo site that loads an example NWB file (or one supplied by the user), deconstructs the HDF5 hierarchy, and prints this to a terminal-like container on the screen.
Beta Was this translation helpful? Give feedback.
All reactions