-
Notifications
You must be signed in to change notification settings - Fork 34
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
Convert to nwb #44
Convert to nwb #44
Conversation
* docstrings * json dump insertion into location * ignore channel_conversion if all are 1 * black formatting
Co-authored-by: Dimitri Yatsenko <[email protected]>
Co-authored-by: Dimitri Yatsenko <[email protected]>
Co-authored-by: Dimitri Yatsenko <[email protected]>
* black * upgrade to latest version of conversion-tools * upgrade to latest spikeinterface api *
# Conflicts: # element_array_ephys/export/nwb.py
Could you display the contents of |
it looks like this worked. The test is running through correctly now |
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.
Thanks @bendichter! Appreciate your work on this. It will be great for DataJoint Elements users to have a simple way to export to NWB.
I have reviewed the pull request and left my comments above. Let's aim to merge this pull request and workflow-array-ephys#50 by the end of the week.
Co-authored-by: Kabilar Gunalan <[email protected]>
Co-authored-by: Kabilar Gunalan <[email protected]>
Co-authored-by: Kabilar Gunalan <[email protected]>
Co-authored-by: Kabilar Gunalan <[email protected]>
Co-authored-by: Kabilar Gunalan <[email protected]>
Hi @bendichter, please remove the |
@kabilar done |
element_array_ephys/export/nwb.py
Outdated
@@ -46,7 +43,7 @@ def __init__(self, lfp_electrodes_query, chunk_length: int = 10000): | |||
self.electrodes = self.lfp_electrodes_query.fetch("electrode") | |||
|
|||
first_record = ( | |||
self.lfp_electrodes_query & dict(electrode=self.electrodes[0]) | |||
self.lfp_electrodes_query & dict(electrode=self.electrodes[0]) | |||
).fetch(as_dict=True)[0] |
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.
).fetch(as_dict=True)[0] | |
).fetch(as_dict=True, limit=1)[0] |
Co-authored-by: Dimitri Yatsenko <[email protected]>
Co-authored-by: Dimitri Yatsenko <[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.
Thanks @bendichter! This is great work.
Change dependency installation
depends on datajoint/element-session#7
needs tests