Repository navigation
Fixed #192: Handling of neo 0.7 array_annotations - #201
Closed
muellerbjoern wants to merge 2 commits into
Closed
muellerbjoern wants to merge 2 commits into
muellerbjoern wants to merge 2 commits into
Conversation
|
Hello @bjoern1001001! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
Member
|
This PR was merged and extended into cumulativ fix #203 to test CI pass. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_attrsto make sure they are removed instrip_iter_values.Unfortunately this code will not make the tests pass because there are bugs in
get_fake_valuesin 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.