Skip to content
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

[WIP] Flip specified drives in input histogram #905

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dylansdaniels
Copy link
Collaborator

@dylansdaniels dylansdaniels commented Oct 16, 2024

Adding functionality to specify spike types to invert when creating the input histogram.

So far:

image

Still need to test, etc. More coming soon :)

@dylansdaniels dylansdaniels self-assigned this Oct 16, 2024
@jasmainak
Copy link
Collaborator

can you add a tiny unit test to check that the inverted axis is indeed added?

if invert_spike_types is None:
invert_spike_types = list()
else:
if isinstance(invert_spike_types, dict):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if isinstance(invert_spike_types, dict):
if not isinstance(invert_spike_types, (str, list)):

Hi Dylan, Great PR.. Just a small suggestion: in the type check for invert_spike_types, instead of raising a TypeError only when it's a dict, it would be clearer to ensure it's either a string or a list

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