-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Various cleanup and changes inspired from openMINDS-MATLAB-UI (#20)
* unreviewed changes * Update getSchemaShortName.m * fix * Change: do not add controlled instances to collection * Update Collection, ensure compatibility with R2022b * Minor changes * Update functions providing setup and startup routines * Add isInstance and isMixedInstance utility functions * Fix change namespace reference "om" to "openminds" * ... * Minor changes from reviewing PR #20 * Add newline eof * Minor changes for PR #20 * Update loadInstances.m fix typo * Fix isMixedInstance: mixed up namespace order * Update: Allow comparison of empty object in LinkedCategory class
- Loading branch information
1 parent
07dc77a
commit f4260f1
Showing
89 changed files
with
766 additions
and
184 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 |
---|---|---|
@@ -1,3 +1,6 @@ | ||
# Vocab files | ||
code/resources/.vocab | ||
|
||
# Downloaded files / temporary folders | ||
downloads/ | ||
target/ | ||
|
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 |
---|---|---|
|
@@ -10,4 +10,4 @@ | |
end | ||
|
||
versionStr = strrep(pathSplit{matchedIdx(1)}, schemaFolder, ''); | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function startup(version) | ||
% startup - Startup routines for openMINDS_MATLAB | ||
% | ||
% This function ensures that only one version of openMINDS schema classes | ||
% are on MATLAB's search path. | ||
|
||
arguments | ||
version (1,1) string = "latest" | ||
end | ||
|
||
disp('Initializing openMINDS_MATLAB...') | ||
|
||
% NB: Assumes this function is located in code/+openminds: | ||
codePath = fileparts( fileparts( mfilename('fullpath') ) ); | ||
addpath( fullfile(codePath, 'internal') ) | ||
|
||
% Run internal function that correctly configures the search path | ||
openminds.selectOpenMindsVersion(version) | ||
disp('Added schemas from the "latest" version to path') | ||
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
Oops, something went wrong.