-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
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
allow stimulus_description in ScalaNWBReader #183
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! Are we sure that the attrs
will always have stimulus_description
? If not, we should take this edge case into account
Thanks @AurelienJaquier . I added a exception |
bluepyefe/nwbreader.py
Outdated
protocol_name = "Step" | ||
try: | ||
protocol_name = self.content["acquisition"][sweep].attrs["stimulus_description"] | ||
except AttributeError: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be KeyError
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated in new commit.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #183 +/- ##
==========================================
- Coverage 73.78% 73.68% -0.11%
==========================================
Files 38 38
Lines 2415 2421 +6
==========================================
+ Hits 1782 1784 +2
- Misses 633 637 +4 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
do you still need the |
deleted. thanks! |
protocol_name
fromstimulus_description
entries to allow ecodes names other thanStep
protocol_name
Step
for Scala files