-
Notifications
You must be signed in to change notification settings - Fork 67
475 decode generalisation #480
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
Conversation
also changed f0 -> feature0
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.
Great PR so far! I've added some suggestions for a first round of review
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 noted a few minor fixes. Also I'm realizing now that the way the code is structured assumes that a dictionary of Tsd objects is spike times - this is probably fine, but see the comment for more detail/discussion!
Co-authored-by: Sarah Jo Venditto <[email protected]>
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.
Everything looks good to me!
This combines:
decode_1d
decode_2d
into a generalised n-dimensional
decode_bayes
, which takes as input anxarray.DataArray
(the new output ofcompute_tuning_curves
).Since
occupancy
is now an attribute of the tuning curves,decode_bayes
uses that directly, if a new argumentuse_occupancy
is set toTrue
, it isFalse
by default.(this builds on the generalised tuning curves PR)
The old functions (and tests) are still available but they throw a
DeprecationWarning
.