-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathstartup.m
More file actions
71 lines (57 loc) · 2.19 KB
/
startup.m
File metadata and controls
71 lines (57 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
% TODO: adapt for cases where there is another matlab folder already in use
%% User search path
startup_file = mfilename('fullpath');
userpath( fileparts( startup_file ) );
addpath( genpath( [ userpath filesep 'matlab'] ) );
%% ASTRA search path
ASTRA_PATH = getenv('ASTRA_PATH');
astra_path = [ ASTRA_PATH '/matlab'];
addpath( genpath( astra_path ) );
%astra_samples_path = getenv('ASTRA_SAMPLES_PATH');
%addpath( genpath( astra_samples_path ) );
if isempty(getCurrentTask())
%% User info
user = getenv('USER');
hostname = getenv('HOSTNAME');
fprintf('USER : %s', user );
fprintf('\nHOSTNAME : %s', hostname );
fprintf('\nstartup file : %s.m', startup_file )
fprintf('\nuserpath : %s', userpath );
fprintf('\nCUDA_PATH : %s', getenv('CUDA_PATH') );
%% ASTRA info
fprintf('\nASTRA_PATH : %s', ASTRA_PATH );
fprintf('\nAdd ASTRA path : %s', astra_path );
% fprintf('\nAdd ASTRA samples path : %s', astra_samples_path );
%% MATLAB path
fprintf('\nMATLAB_PATH : %s', getenv('MATLAB_PATH') );
fprintf('\nMATLABPATH : %s', getenv('MATLABPATH') );
fprintf('\nMATLAB_USER_PATH : %s', getenv('MATLAB_USER_PATH') );
%% ImageJ
fprintf('\nIMAGEJ : %s', getenv('IMAGEJ') );
fprintf('\nIMAGEJ_MACROS : %s', getenv('IMAGEJ_MACROS') );
%addpath(genpath(imagej_matlab)); % Update for your ImageJ2 (or Fiji) installation as appropriate ImageJ;
%% Default figure properties
% Set default color map to grayscale instead of jet
%set(groot,'DefaultFigureColormap', gray)
%set(groot,'DefaultFigureColormap', stern_special)
%set(groot,'DefaultFigureGraphicsSmoothing','off')
%set( groot,'DefaultFigureRenderer','painter')
%% Number of cores
%[~, ulim] = unix('ulimit -u;');
fprintf('\nulimit -u :')
unix('ulimit -u;');
fprintf( evalc('feature(''numcores'');') );
%fprintf('\n')
% %% Render info
% fprintf('Rendererinfo:\n')
% disp(rendererinfo)
%% Git repository version
%fprintf('\nGit commit ID : %s', git_commit_id );
%% Time to start
d = dir('~/.matlab/startml');
t0 = datetime(d.date);
t1 = datetime('now');
dt = t1 - t0;
fprintf('Startup time: %s',dt)
fprintf('\n')
end