-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhide4bingo_install.py
More file actions
94 lines (66 loc) · 3.41 KB
/
hide4bingo_install.py
File metadata and controls
94 lines (66 loc) · 3.41 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
'''
Created on September 1, 2018
author: Lucas Olivari
'''
import os
######################################################################
#### THIS IS THE SCRIPT WILL MODIFY HIDE SO IT CAN BE USED FOR BINGO
######################################################################
# ==================================================================
# CHOOSE DESTINATION AND WORKING PATHS
# ==================================================================
destination_path = '~/anaconda2/lib/python2.7/site-packages/hide-0.1.0-py2.7.egg/' # change to your destination (the place where your hide package is located within your python repository)
working_path = '/home/lucas/Documentos/work/hidetest/hide/' # change to your working path (the place where your hide stuff are located)
# ==================================================================
# COPYNG STUFF AROUND
# ==================================================================
dfile = 'files/run_hide.py'
os.system('cp ' + dfile + ' ' + working_path)
dfile = 'files/altitude.txt'
os.system('cp ' + dfile + ' ' + working_path)
dfile = 'files/azimuth.txt'
os.system('cp ' + dfile + ' ' + working_path)
dfile = 'files/plot_tod.py'
os.system('cp ' + dfile + ' ' + working_path)
dfile = 'files/bingo.py'
os.system('cp ' + dfile + ' ' + working_path + 'hide/config/')
dfile = 'files/make_fake_bingo_model_1.py'
os.system('cp ' + dfile + ' ' + working_path + 'hide/data/')
dfile = 'files/make_fake_bingo_model_2.py'
os.system('cp ' + dfile + ' ' + working_path + 'hide/data/')
dfile = 'files/hi_sky.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/astro/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/astro/')
dfile = 'files/background_noise.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/plugins/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/plugins/')
dfile = 'files/clean_up.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/plugins/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/plugins/')
dfile = 'files/initialize.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/plugins/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/plugins/')
dfile = 'files/write_coords.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/plugins/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/plugins/')
dfile = 'files/fake_bingo_spectrometer.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/spectrometer/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/spectrometer/')
dfile = 'files/signal.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/utils/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/utils/')
dfile = 'files/sphere.py'
os.system('cp ' + dfile + ' ' + destination_path + 'hide/utils/')
os.system('cp ' + dfile + ' ' + working_path + 'hide/utils/')
# ==================================================================
# CREATING DIRECTORIES AROUND
# ==================================================================
directory = 'sky'
os.system('mkdir ' + working_path + 'hide/data/' + directory)
# ==================================================================
# SAVING THE TEST DATA
# ==================================================================
dfile = 'files/maps_foregrounds_test.fits'
os.system('cp ' + dfile + ' ' + working_path + 'hide/data/sky')
dfile = 'files/freqs_foregrounds_test.fits'
os.system('cp ' + dfile + ' ' + working_path + 'hide/data/sky')