Support read with classes using REGISTER_SUBCLASS_WITH_TYPENAME
#115
Labels
category: enhancement
proposed enhancements or new features
priority: medium
non-critical problem and/or affecting only a small set of users
This is a follow-up issue to #91, #85 . Currently for classes that use
REGISTER_SUBCLASS_WITH_TYPENAME
can be used to create a new NWB file, but are not automatically used when reading from a file. This is because these classes do not have a correspondingneurodata_type
in the schema, and the logic for detecting the type to use is purely based onneurodata_type
right now. See:aqnwb/docs/pages/devdocs/registered_types.dox
Lines 67 to 80 in bfa740a
Possible solutions:
ElectrodeTable
(which is currently the main case for this), is planned to get aneurodata_type
assigned at some point. We can wait for that schema change and updateElectrodeTable
then. However, this does not fix the more general user-case/problem.REGISTER_SUBCLASS_WITH_TYPENAME
to support specifying a fixed path, 2) updateRegisteredType::create
to also consider the path when deciding on the class to use, 3) update the registry inRegisteredType
to support storing and looking up types with an additional optional pathThe text was updated successfully, but these errors were encountered: