-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathstartup.m
More file actions
50 lines (41 loc) · 1.3 KB
/
Copy pathstartup.m
File metadata and controls
50 lines (41 loc) · 1.3 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
mytools = dir('*toolbox');
for i = 1:length(mytools),
tooldir = [pwd '/' mytools(i).name];
addpath(tooldir);
%pdep = genpath(tooldir);
%addpath(tooldir,pdep);
end
addpath(pwd);
clear;
constants;
unitsdefinitions;
% % python path
if isunix %&& strcmp(char(java.lang.System.getProperty('user.name')), 'dmarx')
try
% for all hcit and aftac machines:
[ret, user] = system('echo $USER');
if strcmp(strip(user), 'hcit')
PYENV = pyenv('Version', '/usr/local/bin/python3.7', "ExecutionMode", "InProcess")
%PYENV = pyenv('Version', '/bin/python3.8', "ExecutionMode", "InProcess")
else
PYENV = pyenv('Version', '/usr/local/bin/python3.11')
py_path = py.sys.path;
py_path.append('/home/dmarx/HCIT/hcim_mkland3/hcim')
py_path.append('/home/dmarx/HCIT/hcim_mkland3/hcim/extern')
ds9 = @py.ly.util.ds9bdk.ds9fits;
end
catch ME
warning('failed to start python');
disp(ME.getReport);
end
else
try
PYENV = pyenv('Version', 'C:\Users\dmarx\AppData\Local\conda\conda\envs\py310\python.exe', "ExecutionMode", "InProcess")
catch ME
warning('failed to start python');
disp(ME.getReport);
end
end
% graphics
set(0,'defaultAxesfontsize',14);
more on