Skip to content

Commit

Permalink
Add DecompositionSeries example to ecephys tutorial (#623)
Browse files Browse the repository at this point in the history
* Fix bug in table2nwb

* Add DecompositionSeries to ecephys tutorial

* Merge ecepys tutorial

* Revert changes committed by mistake

* Add band_mean and stdev to bands in DecompositionSeries

* Properly incorporated changes from main

* Suppress output of feature variable + minor fix of TutorialTest
  • Loading branch information
ehennestad authored Nov 25, 2024
1 parent f82e559 commit 63a7c4e
Show file tree
Hide file tree
Showing 5 changed files with 947 additions and 863 deletions.
3 changes: 2 additions & 1 deletion +tests/+unit/TutorialTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ function inspectTutorialFileWithNwbInspector(testCase)
results = py.list(py.nwbinspector.inspect_nwbfile(nwbfile_path=nwbFilename));
results = testCase.convertNwbInspectorResultsToStruct(results);
elseif testCase.NWBInspectorMode == "CLI"
[~, m] = system(sprintf('nwbinspector %s --levels importance', nwbFilename));
[s, m] = system(sprintf('nwbinspector %s --levels importance', nwbFilename));
testCase.assertEqual(s,0, 'Failed to run NWB Inspector using system command.')
results = testCase.parseNWBInspectorTextOutput(m);
end

Expand Down
4 changes: 2 additions & 2 deletions +util/table2nwb.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

for col = T
if ~strcmp(col.Properties.VariableNames{1},'id')

if ~isempty(col.Properties.VariableDescriptions{1})
if ~isempty(col.Properties.VariableDescriptions) ...
&& ~isempty(col.Properties.VariableDescriptions{1})
description = col.Properties.VariableDescriptions{1};
else
description = 'no description provided';
Expand Down
Binary file modified tutorials/ecephys.mlx
Binary file not shown.
Loading

0 comments on commit 63a7c4e

Please sign in to comment.