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

Convert to nwb #44

Merged
merged 88 commits into from
May 9, 2022
Merged

Convert to nwb #44

merged 88 commits into from
May 9, 2022

Conversation

bendichter
Copy link
Contributor

depends on datajoint/element-session#7

needs tests

* docstrings
* json dump insertion into location
* ignore channel_conversion if all are 1
* black formatting
element_array_ephys/export/nwb.py Outdated Show resolved Hide resolved
element_array_ephys/export/nwb.py Outdated Show resolved Hide resolved
element_array_ephys/export/nwb.py Outdated Show resolved Hide resolved
bendichter and others added 6 commits January 12, 2022 15:41
* black
* upgrade to latest version of conversion-tools
* upgrade to latest spikeinterface api
*
# Conflicts:
#	element_array_ephys/export/nwb.py
@bendichter bendichter marked this pull request as ready for review January 26, 2022 20:49
@kabilar
Copy link
Collaborator

kabilar commented Mar 22, 2022

Could you display the contents of clustering_query?

@bendichter
Copy link
Contributor Author

ephys.CuratedClustering.Unit & clustering_query.proj()

it looks like this worked. The test is running through correctly now

Copy link
Collaborator

@kabilar kabilar left a 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.

@kabilar
Copy link
Collaborator

kabilar commented Apr 27, 2022

Hi @bendichter, please remove the ephys_no_curation module from this pull request.

@bendichter
Copy link
Contributor Author

@kabilar done

@@ -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]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
).fetch(as_dict=True)[0]
).fetch(as_dict=True, limit=1)[0]

element_array_ephys/export/nwb/nwb.py Outdated Show resolved Hide resolved
element_array_ephys/export/nwb/nwb.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@kabilar kabilar left a 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.

@kabilar kabilar merged commit 7a4fba9 into datajoint:main May 9, 2022
kabilar pushed a commit to kabilar/element-array-ephys that referenced this pull request Jun 26, 2023
Change dependency installation
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.

Version lock NWB export requirements converting spikeGLX LFP data to NWB
4 participants