[Enhancement]: Create HDMF_File, Update tests that use HERD, Update HERD Documentation, Add check for container and file #1011
Labels
category: enhancement
improvements of code or code behavior
priority: medium
non-critical problem and/or affecting only a small set of users
What would you like changed or added to the documentation and why?
To more realistically simulate the workflow a user would have (from a PyNWB standpoint), we should create a HDMF_File. This will allow general testing for future HDMF version, but more specifically to HERD:
Update HERD documentation to use the following suggestion:
I also think we should change the examples/tutorial to be more realistic. Right now, you create a
HERDManagerContainer
object to represent a file, but in the later examples, the file object and the file of the data object do not match each other, and I think that is confusing.Instead, I suggest using a
SimpleMultiContainer
as the base for the file, and in each example, create a new file, create a new data object, and add the data object to the file before using it:Then in the examples, the
file
argument does not need to be passed because it can be retrieved from thedata
object.This is a more realistic use case, in my opinion. This structure also has the advantage of making the code examples being more standalone / not dependent on earlier objects, except for the definition of
HdmfFile
.All of this would help make this tutorial more analogous to its use in PyNWB, so that we could copy and paste relevant parts of this tutorial to create a PyNWB tutorial with minimal modifications, e.g.,
HdmfFile
->NWBFile
.add_container
->add_acquisition
. Perhaps all of this should be a separate PR though. Up to you. Happy to help with these suggested changes.Do you have any interest in helping write or edit the documentation?
Yes.
The text was updated successfully, but these errors were encountered: