Skip to content

Instantly share code, notes, and snippets.

@tarelli
Created June 22, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tarelli/4711f73ab805e8b06d72874ce303c076 to your computer and use it in GitHub Desktop.
Save tarelli/4711f73ab805e8b06d72874ce303c076 to your computer and use it in GitHub Desktop.
nwb.group1.time
nwb.group1.stimulus_1
nwb.group1.stimulus_2
group1.stimulus_3
group1.stimulus_4
group1.stimulus_5
group2.time
group2.stimulus_1
group2.stimulus_2
group2.stimulus_3
group2.stimulus_4
group2.stimulus_5
where group1 and group2 are two composite types
Plot1.plotXYData(group1.stimulus_1,group1.time)
How to create a Composite:
https://github.com/tarelli/nwb-explorer/blob/master/nwb_explorer/nwb_model_interpreter.py#L43-L45
to get all the groups
nwb.getVariable().getType().getVariables() //will give you all the groups
nwb.getVariable().getType().getVariables().map(g => //do another map to get all the variables and do getInstance on those)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment