-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_tests
executable file
·46 lines (37 loc) · 2.19 KB
/
run_tests
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
#!/usr/bin/env -S python3 -i
# Copyright 2019 Victor Hugo Schulz
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys
sys.path.append("src/data_processing")
from src.data_processing.data_processing import *
def tests_batch():
config_common_list = [ConfigCommon(), ConfigCommon(), ConfigCommon()]
config_dut_list = [ConfigDut(gp_alg_variation = "REFERENCE", dut_identifier="Reference"),
ConfigDut(gp_alg_variation = "BINARY", gp_nn_error_angle=0.0005, dut_identifier="Modified e=0.5mrad"),
ConfigDut(gp_alg_variation = "BINARY", gp_nn_error_angle=0.0010, dut_identifier="Modified e=1.0mrad")]
test_list = [TestStarIdHistogram,
TestStarTrackerPosition,
TestStarTrackerMagnitude,
TestStarTrackerFalseStars,
TestStarTrackerGridSize,
TestStarTrackerFocusDC]
for test in test_list:
test(config_common_list, config_dut_list)
def repr():
config_common_list = [ConfigCommon(op_vertical_fov = 8, op_resolution = (512, 512), op_max_mag = 7.5),
ConfigCommon(op_vertical_fov = 12, op_resolution = (1024, 1024), op_max_mag = 6.0),
ConfigCommon(op_vertical_fov = 8, op_resolution = (640, 640), op_max_mag = 6.5)]
config_dut_list = [ConfigDut(gp_alg_variation = "REFERENCE", dut_identifier="Padgett et al. 1997", gp_g = 40),
ConfigDut(gp_alg_variation = "REFERENCE", dut_identifier="Zhang et al. 2008", gp_g = 40),
ConfigDut(gp_alg_variation = "REFERENCE", dut_identifier="Na et al. 2009", gp_g = 40)]
TestStarTrackerPositionRPR(config_common_list, config_dut_list)
tests_batch()
repr()