Commits
36 36 | |
37 37 | beam_size_pixel = policy_cls.get_beam_size_pixel() |
38 38 | assert beam_size_pixel == 9 |
39 39 | |
40 40 | convsupport = policy_cls.get_convsupport() |
41 41 | assert convsupport == 6 |
42 42 | |
43 43 | margin = policy_cls.get_image_margin() |
44 44 | assert margin == 10 |
45 45 | |
46 + | conv1d = policy_cls.get_conv1d() |
47 + | assert conv1d == 0.3954 |
48 + | |
49 + | conv2d = policy_cls.get_conv2d() |
50 + | assert conv2d == 0.1597 |
51 + | |
46 52 | |
47 53 | def test_nro_imaging_policy(): |
48 54 | """Test NRO imaging policy. |
49 55 | |
50 56 | The beam size in pixel coordinate should be 3. |
51 57 | The convolution support, convsupport, should be 3. |
52 58 | """ |
53 59 | policy_cls = observatory_policy.NROImagingPolicy |
54 60 | |
55 61 | beam_size_pixel = policy_cls.get_beam_size_pixel() |
56 62 | assert beam_size_pixel == 3 |
57 63 | |
58 64 | convsupport = policy_cls.get_convsupport() |
59 65 | assert convsupport == 3 |
60 66 | |
61 67 | margin = policy_cls.get_image_margin() |
62 68 | assert margin == 0 |
69 + | |
70 + | conv1d = policy_cls.get_conv1d() |
71 + | assert conv1d == 0.5592 |
72 + | |
73 + | conv2d = policy_cls.get_conv2d() |
74 + | assert conv2d == 0.3193 |