We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think we decided that an empty dataset should be allowed. So the following MissingRequiredWarning should not be thrown.
In /tests/unit/build_tests/test_io_map.py:
def test_build_empty(self): ''' Test default mapping functionality when no attributes are nested ''' container = Bar('my_bar', [], 'value1', 10) builder = self.mapper.build(container, self.manager) expected = GroupBuilder('my_bar', datasets={'data': DatasetBuilder('data', [])}, attributes={'attr1': 'value1', 'attr2': 10}) self.assertDictEqual(builder, expected)
results in:
c:\users\ryan\documents\nwb\hdmf\src\hdmf\build\map.py:974: MissingRequiredWarning: dataset 'data' for 'my_bar' of type (Bar)
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I think we decided that an empty dataset should be allowed. So the following MissingRequiredWarning should not be thrown.
In /tests/unit/build_tests/test_io_map.py:
results in:
The text was updated successfully, but these errors were encountered: