1
1
function nwbInstallExtension(extensionNames, options)
2
- % nwbInstallExtension - Installs a specified NWB extension.
2
+ % NWBINSTALLEXTENSION - Installs a specified NWB extension.
3
3
%
4
- % Usage :
5
- % nwbInstallExtension (extensionNames) installs Neurodata Without Borders
6
- % (NWB) extensions to extend the functionality of the core NWB schemas.
7
- % extensionNames is a scalar string or a string array, containing the name
8
- % of one or more extensions from the Neurodata Extensions Catalog
4
+ % Syntax :
5
+ % NWBINSTALLEXTENSION (extensionNames) installs Neurodata Without Borders
6
+ % (NWB) extensions to extend the functionality of the core NWB schemas.
7
+ % extensionNames is a scalar string or a string array, containing the name
8
+ % of one or more extensions from the Neurodata Extensions Catalog
9
9
%
10
10
% Valid Extension Names (from https://nwb-extensions.github.io):
11
11
{{extensionNamesDoc}}
12
12
%
13
- % Example:
14
- % % Install the "ndx-miniscope" extension
15
- % nwbInstallExtension("ndx-miniscope")
13
+ % Usage:
14
+ % Example 1 - Install "ndx-miniscope" extension::
15
+ %
16
+ % nwbInstallExtension("ndx-miniscope")
16
17
%
17
18
% See also:
18
19
% matnwb.extension.listExtensions, matnwb.extension.installExtension
@@ -27,7 +28,8 @@ function nwbInstallExtension(extensionNames, options)
27
28
if isempty(extensionNames)
28
29
T = matnwb.extension.listExtensions();
29
30
extensionList = join( compose(" %s", [T.name]), newline );
30
- error("Please specify the name of an extension. Available extensions:\n\n%s\n", extensionList)
31
+ error('NWB:InstallExtension:MissingArgument', ...
32
+ 'Please specify the name of an extension. Available extensions:\n\n%s\n', extensionList)
31
33
else
32
34
for extensionName = extensionNames
33
35
matnwb.extension.installExtension(extensionName, 'savedir', options.savedir)
0 commit comments