-
Notifications
You must be signed in to change notification settings - Fork 2
/
instructions.txt
148 lines (100 loc) · 3.79 KB
/
instructions.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
#open stack machine
http://10.194.169.75
#Sentry
open stack machine
http://10.194.169.75:9000/accept/2/afddf62f254a471bb3d858d200a5c6dd19a96317f4444e27bad2fbea176da748/
http://10.194.169.75:9000/sentry/python/
#Python-stash
http://openstack-compute01:5601/
ssh -t -L 5001:localhost:5001 nx ssh -t -L 5001:localhost:5001 tramacer@openstack-compute01
ssh -t -L 5601:localhost:5601 nx ssh -t -L 5601:localhost:5601 tramacer@openstack-compute01
http://localhost:5601
#On Mac
-)mount isdc using fuse
PATH is the local_cache directory from conf_env.yml
typically PATH=/Users/orion/astro/Integral_Web_Analysis/TEST_DISPATCHER/ddosa_cache
mkdir PATH
sshfs tramacer@nx:/unsaved_data/neronov/data PATH
-)tunnel to intgccn01 machine
ssh -t -L 32778:localhost:32778 nx ssh -t -L 32778:localhost:32778 [email protected]
#On login machine
-) ssh -t -L 32778:localhost:32778 [email protected]
-) swithc to bash
-) heainit
-) to use the test environmet: source activate cdci_test
-) to run the server
a)run_osa_cdci_server.py -conf_file conf_env.yml
OR
b))run_osa_cdci_server.py -conf_file conf_env.yml -use_gunicorn
#on every machine
cp .secret-ddosa-client ~
cdciweb01
testing machine: http://cdciweb01.isdc.unige.ch
http://cdciweb01.isdc.unige.ch/cdci/online-data-analysis
To test URL on a local server:
http://127.0.0.1:5000/ + url string eg:
http://127.0.0.1:5000/tes
#On Mac
-)mount isdc using fuse
PATH is the local_cache directory from conf_env.yml
typically PATH=/Users/orion/astro/Integral_Web_Analysis/TEST_DISPATCHER/ddosa_cache
mkdir PATH
sshfs tramacer@nx:/unsaved_data/neronov/data PATH
-)tunnel to intgccn01 machine
ssh -t -L 32778:localhost:32778 nx ssh -t -L 32778:localhost:32778 [email protected]
#On login machine
-) ssh -t -L 32778:localhost:32778 [email protected]
-) swithc to bash
-) heainit
-) to use the test environmet: source activate cdci_test
-) to run the server
a)run_osa_cdci_server.py -conf_file conf_env.yml
OR
b))run_osa_cdci_server.py -conf_file conf_env.yml -use_gunicorn
#on every machine
cp .secret-ddosa-client ~
cdciweb01
testing machine: http://cdciweb01.isdc.unige.ch
http://cdciweb01.isdc.unige.ch/cdci/online-data-analysis
To test URL on a local server:
http://127.0.0.1:5000/ + url string eg:
http://127.0.0.1:5000/
To run tests example in run_test directory:
pytest ../tests/test_plugins.py::test_image -s -v
#ssh tunnel on testing machine
ssh -C -D 8080 [email protected]
#XSPEC python
#login to cdciweb01
#run always on cdciweb01 machine!
bash
heainint
Xspec python install
include: python-config --cflags
lib: python-config --ldflags
in heasoft-<ver>/Xspec/BUILD_DIR/hmakerc
PYTHON_INC="-I/home/isdc/tramacer/anaconda2/include/python2.7"
PYTHON_LIB="-lpython2.7"
cd /path/to/heasoft-<ver>/Xspec/src/XSUser/Python/xspec
hmake clean
hmake
hmake install
t?object_name=&RA=257.815417&DEC=-41.593417&T1_iso=2003-03-15T23%3A27%3A40.0&T2_iso=2003-03-16T00%3A03%3A15.0&time_group_selector=time_range_iso&radius=25&scw_list=005100410010.001%2C005100420010.001%2C005100430010.001%2C005100440010.001%2C005100450010.001&E1_keV=20.0&E2_keV=40.0&image_type=Real&product_type=isgri_image&instrument=ISGRI
To run tests example in run_test directory:
pytest ../tests/test_plugins.py::test_image -s -v
#ssh tunnel on testing machine
ssh -C -D 8080 [email protected]
#XSPEC python
#login to cdciweb01
#run always on cdciweb01 machine!
bash
heainint
Xspec python install
include: python-config --cflags
lib: python-config --ldflags
in heasoft-<ver>/Xspec/BUILD_DIR/hmakerc
PYTHON_INC="-I/home/isdc/tramacer/anaconda2/include/python2.7"
PYTHON_LIB="-lpython2.7"
cd /path/to/heasoft-<ver>/Xspec/src/XSUser/Python/xspec
hmake clean
hmake
hmake install