Can we save state machine JSON/XML format in NWB? #42
Replies: 3 comments 3 replies
-
Hello @tuanpham96 I agree this is something we can and should improve upon as we continue development on the NWB standard. It heavily depends on the structure of what you're serializing in JSON, but generally speaking I'd say shape it into a DynamicTable instead of dumping the string in a free-text field. Dumping it to a If you're using Python, this process can be as simple as in this example (assuming the string is able to be 'normalized') at which point we have existing convenience functions for automatically creating a DynamicTable from that DataFrame. |
Beta Was this translation helpful? Give feedback.
-
As a long-term solution however, just making a separate table for the information loses the original linkage to the corresponding neurodata type so that's not really ideal... A common occurrence of this from what I've seen is system, trial, or other processing-specific configurations, so I've wondered if it might be useful to add a general field to base data types (TimeSeries, TimeIntervals, etc.) called Any thoughts on that @rly @oruebel @bendichter? |
Beta Was this translation helpful? Give feedback.
-
The
I think If you have questions about using |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to save an XML or JSON data in NWB? Are there certain NWB data types that already handle JSON/XML objects?
The reason being many behavior experiments are designed with the state machine framework.
And it would be great just to save such set up in a certain format, instead of appending it as text inside
.description
and.comments
.Maybe
ndx-beadl
has already touched upon some of this already but I'm unsure how to use it with files not from BEADL.Beta Was this translation helpful? Give feedback.
All reactions