Improve unit test coverage for reading neurodata_type objects and fields #134
Labels
priority: medium
non-critical problem and/or affecting only a small set of users
topic: testing
issues related to testing
This issue is a follow up to #85
Add unit tests for read. For every neurodata_type we should test that: a) the type itself can be read from file, and b) that all
DEFINE_FIELDS
specified for read can be read. As part of writing the tests, we should also double-check for each type, that all fields that AqNWB writes, that they are also exposed for read.TimeSeries
,Data
,VectorData
,ElementIdentifiers
, andDevice
are already covered by Add read tests forTimeSeries
, VectorData,
Data,
ElementIdentifers,
Device` #124ElectricalSeries
(this is currently covered in the read example, but would be nice to have as dedicated tests)SpikeEventSeries
NWBFile
. NOTE: For reading the NWBFile container, there is the special case thatNWBFile
requires the path to the "/" so this may require some additional logic in the tests.aqnwb/src/nwb/NWBFile.cpp
Lines 39 to 44 in bfa740a
ElectrodeGroup
DynamicTable
: Support reading of arbitrary RegisteredTypes #143 adds method for reading columns by nameElectrodeTable
: The following items have been completed in Support reading of arbitrary RegisteredTypes #143DEFINE_FIELDS
for default columns defined in the schema)neurodata_type
and usesREGISTER_SUBCLASS_WITH_TYPENAME
. I.e., on read this will return aDynamicTable
instead of anElectrodeTable
right now. See Support read with classes usingREGISTER_SUBCLASS_WITH_TYPENAME
#115ElectrodeTable
and read theElectrodeTable
itselfThe text was updated successfully, but these errors were encountered: