Open amadaabrego opened 3 months ago
Try to add it without doing the toTable(). Does that work?
Try to add it without doing the toTable(). Does that work?
@ehennestad It doesn't. I added it to be able to visualize the data
@lawrence-mbf could you look into this?
Hi @amadaabrego are there any errors when you export the file? I don't have the "labels" variable in your script so I attempted to recreate using an empty DynamicTable which, after setting the id
and the vectorindex
, appeared to work without issues.
Can you also use HDFView to search if the /general/extracellular_ephys/electrodes
directory is present?
Hey everyone, I tried the HDFView, and it did show it. I ended up deleting the nwb file, and doing the export again. It fixed the problem.
Thanks!
Very odd, were there any errors the first time exporting? MatNWB will attempt to amend a file if the filename is the same so there may be a bug there.
Yes! I had a lot of errors the first time I tried to export it. I was inputting strings and not chars. It took me a while to realize that nwb only accepts text if they are char. I assumed that it would overwrite the file instead of trying to amend it. Good to know nowThank you so much for everything! On Apr 1, 2024, at 3:49 PM, Lawrence @.***> wrote: Very odd, were there any errors the first time exporting? MatNWB will attempt to amend a file if the filename is the same so there may be a bug there.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>
Gotcha, I guess there are two things that may have problems here:
1) A file meant for amending should be validated as a real NWB file. 2) strings should be supported.
When MatNWB was first written, string
types were still considered new so few people actually used it. It should not be too bad to support strings, though, since they should be better mapped to the HDF5 type.
What happened?
Hello!
I'm working into exporting an intan file to a nwb format - I am customizing the labels, and therefore not using Intan's written code.
I followed the instructions in the tutorial to create a ElectrodesDynamicTable, that will be the general_extracellular_ephys_electrodes. This is how the nwb file organization looks like BEFORE exporting.![image](https://github.com/NeurodataWithoutBorders/matnwb/assets/89035093/394dccbc-dd61-427f-962e-5367cef6ce04)
However, once I export it, and read it again general_extracellular_ephys_electrodes is empty![image](https://github.com/NeurodataWithoutBorders/matnwb/assets/89035093/d3ee041e-6e0e-4711-8b1e-4c8d568a2aa8)
I have double, triple checked that the formats in the ElectrodesDynamicTable fits whatever is in the tutorial, but still doesn't work. This is how the ElectrodesDynamicTable looks like![image](https://github.com/NeurodataWithoutBorders/matnwb/assets/89035093/16ac0bc9-c275-4625-9a3e-73b0c61bbf5e)
Steps to Reproduce
Error Message
No response
Operating System
macOS
Matlab Version
Matlab_2023b
Code of Conduct