Skip to content
Snippets Groups Projects
Commit db26428f authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

Merge branch 'TMSS-343' into 'master'

TMSS-343 Change pointing angle test values, these schould be below 2 pi radians

Closes TMSS-343

See merge request !236
parents 28a1b1e2 0e5bdda1
No related branches found
No related tags found
1 merge request!236TMSS-343 Change pointing angle test values, these schould be below 2 pi radians
......@@ -65,18 +65,18 @@
"stations":["CS001"],
"tile_beam": {
"direction_type": "J2000",
"angle1": 42,
"angle2": 42,
"angle3": 42
"angle1": 0.42,
"angle2": 0.43,
"angle3": 0.44
},
"SAPs": [
{
"name": "target0",
"digital_pointing": {
"direction_type": "J2000",
"angle1": 24,
"angle2": 24,
"angle3": 24
"angle1": 0.24,
"angle2": 0.25,
"angle3": 0.26
},
"subbands": [
349,
......@@ -87,9 +87,9 @@
"name": "target1",
"digital_pointing": {
"direction_type": "J2000",
"angle1": 24,
"angle2": 24,
"angle3": 24
"angle1": 0.27,
"angle2": 0.28,
"angle3": 0.29
},
"subbands": [
349,
......
......@@ -257,15 +257,15 @@ class SubTasksCreationFromTaskBluePrintCalibrator(unittest.TestCase):
create_observation_control_subtask_from_task_blueprint(cal_task_blueprint)
cal_task_blueprint.specifications_doc['autoselect'] = False
cal_task_blueprint.specifications_doc['pointing']['angle1'] = 11.11
cal_task_blueprint.specifications_doc['pointing']['angle2'] = 22.22
cal_task_blueprint.specifications_doc['pointing']['angle1'] = 1.111
cal_task_blueprint.specifications_doc['pointing']['angle2'] = 2.222
subtask = create_observation_control_subtask_from_task_blueprint(cal_task_blueprint)
self.assertEqual("defined", str(subtask.state))
self.assertEqual("observation control", str(subtask.specifications_template.name))
self.assertEqual("observation", str(subtask.specifications_template.type))
self.assertEqual('J2000', subtask.specifications_doc['stations']['analog_pointing']['direction_type'])
self.assertEqual(11.11, subtask.specifications_doc['stations']['analog_pointing']['angle1'])
self.assertEqual(22.22, subtask.specifications_doc['stations']['analog_pointing']['angle2'])
self.assertEqual(1.111, subtask.specifications_doc['stations']['analog_pointing']['angle1'])
self.assertEqual(2.222, subtask.specifications_doc['stations']['analog_pointing']['angle2'])
class SubtaskInputSelectionFilteringTest(unittest.TestCase):
......
......@@ -69,16 +69,16 @@
"stations": ["CS001","CS002","CS003"],
"tile_beam": {
"direction_type": "J2000",
"angle1": 42,
"angle2": 42
"angle1": 0.42,
"angle2": 0.43
},
"SAPs": [
{
"name": "target0",
"digital_pointing": {
"direction_type": "J2000",
"angle1": 24,
"angle2": 24
"angle1": 0.24,
"angle2": 0.25
},
"subbands": [
349,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment