-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexecute_test.py
54 lines (48 loc) · 1.75 KB
/
execute_test.py
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
# from MeerKATgen import Observation
# from MeerKATgen.sim_params import random_SETI_params
# from MeerKATgen.create_dataset import create_simulated_obs_true_simulated
# from MeerKATgen.create_dataset import create_simulated_obs_single_true_simulated
# from MeerKATgen.create_dataset import create_simulated_obs_false_simulated
# from MeerKATgen.create_dataset import parallel
# """
# Tests to run with github actions
# """
# print("Test Sim parameters")
# RFI = random_RFI_params(10)
# SETI = random_SETI_params(2)
# print("Test Blank Obs")
# obs = Observation(num_beams=64,
# fchans=256,
# tchans=16,
# ascending=False,
# telescope_sigma = 0.5,
# RFI = RFI,
# SETI = SETI,
# obs_data=None)
# data, coordinates, adj_matrix, labels = obs.extract_all()
# obs_data = data, coordinates
# RFI = random_RFI_params(10)
# SETI = random_SETI_params(2)
# print("Test background Obs")
# obs2 = Observation(num_beams=64,
# fchans=256,
# tchans=16,
# ascending=False,
# telescope_sigma = 0.5,
# RFI = RFI,
# SETI = SETI,
# obs_data=obs_data)
# print("batched simulation true")
# create_simulated_obs_true_simulated()
# print("batched simulation false")
# create_simulated_obs_false_simulated()
# print("batched simulation single true")
# create_simulated_obs_single_true_simulated()
# print("passed")
# print("test multicore")
# from time import time
# start = time()
# parallel(10, create_simulated_obs_true_simulated,1)
# print(time()-start)
# # vectorize(create_simulated_obs_false_simulated, 10)
# # vectorize(create_simulated_obs_true_simulated, 10)