Skip to content

Fixed #192: Handling of neo 0.7 array_annotations - #201

Closed
muellerbjoern wants to merge 2 commits into
NeuralEnsemble:masterfrom
muellerbjoern:fix/192
Closed

muellerbjoern wants to merge 2 commits into
NeuralEnsemble:masterfrom
muellerbjoern:fix/192

Conversation

@muellerbjoern

Copy link
Copy Markdown
Contributor

This fixes handling of neos array_annotations in neo_tools (see #192).
The code treats array_annotations like array attributes but keeps them nested in a dictionary. I'm not sure if this extra nesting is desired or not, because e.g. annotations are not nested in their own subdictionary but rather flattened. If flattening is better I will change this behavior.
The new code also removes any duplicates that emerge due to the fact that regular array attributes (like labels and durations) are handled as array_annotations internally. In test_neo_tools array_annotations are now also listed in array_attrs to make sure they are removed in strip_iter_values.

Unfortunately this code will not make the tests pass because there are bugs in get_fake_values in neo which is used for those tests. Code that the test_neo_tools tests pass with can be found at NeuralEnsemble/python-neo#656. This is, however, still work in progress.

@pep8speaks

Copy link
Copy Markdown

Hello @bjoern1001001! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 51:80: E501 line too long (113 > 79 characters)
Line 53:80: E501 line too long (90 > 79 characters)
Line 56:80: E501 line too long (83 > 79 characters)

@mdenker

mdenker commented Apr 1, 2019

Copy link
Copy Markdown
Member

This PR was merged and extended into cumulativ fix #203 to test CI pass.

@mdenker mdenker closed this Apr 1, 2019
@mdenker mdenker added this to the v0.6.1 milestone Apr 1, 2019
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.

3 participants