Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development sync ahead of Nov course #90

Merged
merged 45 commits into from
Nov 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9fb82e2
v1.32.4
Aug 6, 2021
be6abbe
Update probe class to save and load 3D landmarks
sreekanthkura7 Aug 10, 2021
775f8b6
Update probe class to work with old SD files
sreekanthkura7 Aug 11, 2021
3d92be7
Merge pull request #71 from BUNPC/edit-ProbeClass
jayd1860 Aug 11, 2021
97f334d
v1.32.4
Aug 12, 2021
c6ea346
-- Fix small bug in setpaths(0) paths removal
Aug 12, 2021
1138b19
CCA shrinkage back on
mayucel Aug 16, 2021
fe2f23a
Update hmrR_PreprocessIntensity_Negative.m
mayucel Aug 17, 2021
5672538
v1.32.5
jayd1860 Sep 7, 2021
224339c
Update hmrR_PreprocessIntensity_Negative.m
mayucel Sep 8, 2021
328f2a4
v1.32.5
jayd1860 Sep 10, 2021
a58f612
v1.32.7
jayd1860 Sep 15, 2021
9e88218
Create shared code and submodule references to DataTree and Utils (#74)
jayd1860 Sep 21, 2021
456149b
Relink submodule references from jayd1860 to BUNPC
jayd1860 Sep 22, 2021
8628b38
Fix submodule download not working on linux when initializing repo wi…
Sep 23, 2021
0874724
-- Add tool to setpaths to be able to download submodules without hav…
jayd1860 Sep 27, 2021
b406c8b
-- Change code to setpaths not to initialize submodules every toime i…
jayd1860 Sep 28, 2021
5938cc8
ISSUE_TEMPLATE folder (#77)
sstucker Sep 30, 2021
7c5e0c2
Fix setpaths issue on MAC where the initialization of submodules caus…
Sep 30, 2021
286433e
-- Add .gitignore file to simplify and clatrify git status output
Sep 30, 2021
07a2cba
-- In previous commit didn't entirely fix issue with setpaths waiting…
Sep 30, 2021
ad1dff3
Just use Snirf style GetAux to display aux data (#75)
sstucker Sep 30, 2021
7c26f18
-- Set origin of submodules to be same as parent repo to follow parad…
jayd1860 Sep 30, 2021
28c997e
-- Fix issue in setpaths when attempting to download submodules using…
jayd1860 Oct 1, 2021
9bac7d6
-- Fix typo
jayd1860 Oct 1, 2021
ed93e88
-- Fix issue with setpaths submodules when there's a partial submodul…
jayd1860 Oct 4, 2021
f314a7b
-- Greatly simplify and make it more straighfoward the setpaths process.
jayd1860 Oct 7, 2021
d91436f
-- Fix setpaths error exception on linux and mac because ls([pathname…
jayd1860 Oct 7, 2021
f26e4c1
-- a) Fix setpaths bug in removeFolderContents.m on linux and MAC bec…
jayd1860 Oct 7, 2021
a963243
Fix setpaths('update') not working.
Oct 9, 2021
24c6af8
-- Fix problems in setpaths with creating new submodule branches
jayd1860 Oct 15, 2021
0f3d725
-- Don't add current app twice. Check app include list to see if it a…
jayd1860 Oct 16, 2021
d864144
Glm fixes (#80)
sstucker Oct 25, 2021
277d834
-- In setpaths exclude more folders to avoid problems and headaches w…
Oct 26, 2021
e1f50ea
-- Fix build not working because need to copy ALL config files to ins…
Oct 27, 2021
348c2e6
Merge branch 'master' into development
jayd1860 Oct 27, 2021
3d94152
-- Change setpath submodule download without git, to not ask question…
jayd1860 Oct 29, 2021
be030bc
Merge branch 'master' into development
jayd1860 Oct 29, 2021
899f5f2
Merge branch 'master' of https://github.com/BUNPC/Homer3 into develop…
jayd1860 Oct 29, 2021
3ec1e78
Merge branch 'master' of https://github.com/BUNPC/Homer3 into develop…
jayd1860 Oct 29, 2021
de6ac0c
-- Update submodule references to latest development branch rev
jayd1860 Oct 29, 2021
350f719
-- Change unit test to use global config variable rather than opening…
jayd1860 Oct 30, 2021
729b142
Merge branch 'master' of https://github.com/BUNPC/Homer3 into develop…
jayd1860 Oct 30, 2021
aed87aa
Merge branch 'master' of https://github.com/BUNPC/Homer3 into develop…
jayd1860 Oct 31, 2021
f43d8e4
DataTree submodule reference update and Mac support fixes (#89)
jayd1860 Nov 3, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DataTree
54 changes: 34 additions & 20 deletions Install/setup.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ function setup()

try

setNamespace('Homer3');

currdir = filesepStandard(pwd);

h = waitbar(0,'Installation Progress ...');
Expand Down Expand Up @@ -55,15 +57,15 @@ function main()
iStep = 1;

fprintf('dirnameSrc = %s\n', dirnameSrc)
fprintf('dirnameDst = %s\n\n', dirnameDst)
fprintf('dirnameDst = %s\n', dirnameDst)

logger = Logger([dirnameSrc, 'Setup']);

[~, exename] = getAppname();

v = getVernum();
logger.Write('==========================================\n');
logger.Write('Setup script for %s v%s.%s,%s:\n', exename, v{1}, v{2}, v{3});
logger.Write('Setup script for %s v%s.%s.%s:\n', exename, v{1}, v{2}, v{3});
logger.Write('==========================================\n\n');

logger.Write('Platform params:\n');
Expand Down Expand Up @@ -118,9 +120,12 @@ function main()
function err = cleanup()
global dirnameSrc
global dirnameDst
global logger

err = 0;

logger = [];

% Uninstall old installation
try
if exist(dirnameDst,'dir')
Expand All @@ -137,27 +142,30 @@ function main()
end

% Change source dir if not on PC
if ~ispc() && ~isdeployed()
dirnameSrc0 = dirnameSrc;

if ~ispc()
dirnameSrc = sprintf('~/Downloads/%s_install/', lower(getAppname));
fprintf('SETUP: current folder is %s\n', pwd);
rmdir_safe(sprintf('~/Desktop/%s_install/', lower(getAppname())));
rmdir_safe(dirnameSrc);
rmdir_safe('~/Desktop/Test/');

if ispathvalid(dirnameSrc)
err = -1;
end
if ispathvalid('~/Desktop/%s_install/')
err = -1;
end
if ispathvalid('~/Desktop/Test/')
err = -1;
if ~isdeployed()
rmdir_safe(sprintf('~/Desktop/%s_install/', lower(getAppname())));
if ~pathscompare(dirnameSrc, dirnameSrc0)
rmdir_safe(dirnameSrc);
if ispathvalid(dirnameSrc)
err = -1;
end
copyFile(dirnameSrc0, dirnameSrc);
end
rmdir_safe('~/Desktop/Test/');

if ispathvalid('~/Desktop/%s_install/')
err = -1;
end
if ispathvalid('~/Desktop/Test/')
err = -1;
end

cd(dirnameSrc);
end

copyFile(dirnameSrc0, dirnameSrc);
cd(dirnameSrc);
end


Expand Down Expand Up @@ -197,7 +205,13 @@ function copyFile(src, dst, type)
end

% Copy file from source to destination folder
logger.Write('Copying %s to %s\n', src, dst);

logmsg = sprintf('Copying %s to %s\n', src, dst);
if isempty(logger)
fprintf(logmsg);
else
logger.Write(logmsg);
end
copyfile(src, dst);

if ~isempty(iStep)
Expand Down
8 changes: 4 additions & 4 deletions UnitTests/CleanUp.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ function CleanUp(standalone, start)
global procStreamStyle
global testidx;
global logger
global cfg
global maingui

if ~exist('standalone','var') || isempty(standalone)
Expand Down Expand Up @@ -52,11 +53,10 @@ function CleanUp(standalone, start)
fclose all;

% Create or restore config file
c = ConfigFileClass();
if c.BackupExists()
c.Restore()
if cfg.BackupExists()
cfg.Restore()
else
c.Save('backup');
cfg.Save('backup');
end

if ~start
Expand Down
16 changes: 8 additions & 8 deletions UnitTests/UnitTestsAll.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function UnitTestsAll()
global logger

global cfg
t_local = tic;

setNamespace('Homer3')
Expand All @@ -10,17 +10,17 @@ function UnitTestsAll()
cleanupObj = onCleanup(@()userInterrupt_Callback(true));

logger = Logger('UnitTestsAll');
cfg = ConfigFileClass();

c = ConfigFileClass();
c.SetValue('Regression Test Active','true');
cfg.SetValue('Regression Test Active','true');

c.SetValue('Include Archived User Functions','Yes');
c.SetValue('Default Processing Stream Style','NIRS');
c.Save();
cfg.SetValue('Include Archived User Functions','Yes');
cfg.SetValue('Default Processing Stream Style','NIRS');
cfg.Save();
% UnitTestsAll_Nirs(false);

c.SetValue('Default Processing Stream Style','SNIRF');
c.Save();
cfg.SetValue('Default Processing Stream Style','SNIRF');
cfg.Save();
UnitTestsAll_Snirf(false);
UnitTestsAll_MainGUI(false)

Expand Down
8 changes: 4 additions & 4 deletions UnitTests/UnitTestsAll_MainGUI.m
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function userInterrupt_Callback(standalone)

% ---------------------------------------------------
function configureAppSettings()
c = ConfigFileClass();
c.SetValue('Regression Test Active','true');
c.SetValue('Default Processing Stream Style','SNIRF');
c.Save();
global cfg
cfg.SetValue('Regression Test Active','true');
cfg.SetValue('Default Processing Stream Style','SNIRF');
cfg.Save();

8 changes: 4 additions & 4 deletions UnitTests/UnitTestsAll_Snirf.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function userInterrupt_Callback(standalone)

% ---------------------------------------------------
function configureAppSettings()
c = ConfigFileClass();
c.SetValue('Regression Test Active','true');
c.SetValue('Default Processing Stream Style','SNIRF');
c.Save();
global cfg
cfg.SetValue('Regression Test Active','true');
cfg.SetValue('Default Processing Stream Style','SNIRF');
cfg.Save();
2 changes: 1 addition & 1 deletion Utils/Shared
Submodule Shared updated 0 files