Skip to content

Conversation

@raspicorgi
Copy link

The most recent bugfix #111 introduced a bug where attributes were only read once per load instead of for each stimulus individually.

Signed-off-by: Jannis Hollmann <[email protected]>
__attributes__ = json.loads(json_attributes)

attributes = {attribute: load_hdf5_dataset(attribute_group, attribute) for attribute in __attributes__}
attributes = {attribute: attribute_group[attribute][...] for attribute in __attributes__}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

load_hdf5_dataset should handle string attributes. Removing it will fail to load string attributes. There is a test for this, which is now failing (For some reason, the tests didn't run automatically here, but I needed to trigger them)

@matthias-k
Copy link
Owner

Can you add a test that fails with the old code to make sure that the problem doesn't come back?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants