-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use NWBInspector when testing livescript tutorials (#618)
* Add function for running nwbinspector on tutorial files during testing #484 * Fix intro tutorial * Add nwbInspector check to ignore list in TutorialTest * Fix timestamps with wrong length in Behavior tutorial * Update behavior tutorial. - Add note about why dimension of SpatialSeries data is transposed wrt the type specification - Fix typos * Update images tutorial - Add explanation of why arrays are transposed relative to the type documentation - Fix dimension order of AbstractFeatureSeries * Add 'cell_id' to types.core.IntracellularElectrode in Icephys tutorial * Update run_tests.yml * Update TutorialTest.m * Update TutorialTest.m * Update TutorialTest.m * Try o set up python path * ... * ... * .. * ... * test * ... * Update TutorialTest.m * Fix TutorialTest * Tests are working on GItHub Actions * Update TutorialTest.m * Fix * Update untypedSetTest.m Suppress output in test * Add fixture for clearing generated types when running tests * Fix typo * Improve Fixture description and improve function names * Use OutOfProcess execution mode for python in matlan for github action - Simplifies the reading of nwb files using pynwb in TutorialTest * Update run_tests.yml * Added sentence about using timestamps * Ignore NWBInspector result for specific dataset in ecephys tutorial
- Loading branch information
1 parent
7caa336
commit 21bd143
Showing
18 changed files
with
571 additions
and
482 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
classdef ResetGeneratedTypesFixture < matlab.unittest.fixtures.Fixture | ||
% ResetGeneratedTypesFixture - Fixture for resetting generated NWB classes. | ||
% | ||
% ResetGeneratedTypesFixture clears all the generated classes for NWB | ||
% types from the matnwb folder. When the fixture is set up, all generated | ||
% class files for NWB types are deleted. When the fixture is torn down, | ||
% generateCore is called to regenerate the classes for NWB types of the | ||
% latest NWB version | ||
|
||
methods | ||
function setup(fixture) | ||
fixture.addTeardown( @generateCore ) | ||
nwbClearGenerated() | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function addFolderToPythonPath(folderPath) | ||
pythonPath = getenv('PYTHONPATH'); | ||
if isempty(pythonPath) | ||
updatedPythonPath = folderPath; | ||
else | ||
if ~contains(pythonPath, folderPath) | ||
updatedPythonPath = strjoin({pythonPath, folderPath}, pathsep); | ||
else | ||
return | ||
end | ||
end | ||
setenv('PYTHONPATH', updatedPythonPath); | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function projectDirectory = getProjectDirectory() | ||
projectDirectory = fullfile(fileparts(mfilename('fullpath')), '..', '..'); | ||
end |
Oops, something went wrong.