-
Notifications
You must be signed in to change notification settings - Fork 3
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
Electrode helper functions #603
Conversation
for more information, see https://pre-commit.ci
…e that doesn't work as intended
for more information, see https://pre-commit.ci
Updated this PR to show on the frontend. This required adapting some of the code with reference to catalystneuro/neuroconv#447 and commenting out places where the value doesn't exist (e.g. |
@garrettmflynn Feel free to accept/merge into #586 if you think this works; I just opened as a separate PR since it was a lot of code (more than a usual suggestion and didn't want to commit directly to that branch since this is rather more experimental) |
for more information, see https://pre-commit.ci
@CodyCBakerPhD This still isn't fully submitting the Ecephys metadata back to the interface correctly. Can you help debug? I'm using the SpikeGLX-Phy test pipeline. While I've gotten the metadata to validate on the frontend, this error pops up when submitted, which seems to be related to how the |
Yes, I'll be on this starting this week |
@garrettmflynn OK, sorry again for taking so long on this; I've added code that unpacks the Let me know if you need any help with follow up issues, or when this is ready for a first big review (looking good so far from what I saw debuggin) |
Hmm so this can't proceed past the File Metadata page because none of the unpacked values have a description or dtype—which is required in the table that this eventually is edited from. Would there be a way to simply allow the actual metadata value to pass simply by setting the dtype to Just to reiterate, the original problem was that the File Metadata would not validate because 'square |
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Cody Baker <[email protected]>
You should check out the metadata object passed to the electrode column table from the backend; they all have a description (though most are empty string |
Turns out nothing was showing up because
While your solution above does give us a way to edit Can you advise on how to get the default |
for more information, see https://pre-commit.ci
Yeah I didn't write anything on that - I'll take a look and modify the function to treat the fields like any other column |
for more information, see https://pre-commit.ci
Actually, on double-checking NeuroConv, we don't support the The problem I see is BTW I also see a potential problem on my side with generating the tutorial data; no errors in the console to speak of, but no resulting folder/files show up in |
Ah I see, I'm replicating that now. Is it not included here (https://github.com/catalystneuro/neuroconv/blob/84ed29f014fdd2ed4702c37ae16f208346a467a8/src/neuroconv/datainterfaces/ecephys/spikeglx/spikeglx_utils.py#L25)? |
Hmm yes I suppose that one field technically is. Perhaps best to delay editing of it until generic editing of other contact vector subfields is too |
Got it. Ignoring this allows the conversion to go through. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…utBorders/nwb-guide into electrode_helpers
for more information, see https://pre-commit.ci
…utBorders/nwb-guide into electrode_helpers
for more information, see https://pre-commit.ci
@CodyCBakerPhD Alright this should be good to review. Excited to see what you can break / uncover for additional improvements. |
Merging and reviewing in #586 |
Drafting some electrode helper functions; need to debug them thoroughly and then they need to be wrapped in the API