Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
a61bf005
Commit
a61bf005
authored
3 years ago
by
Taya Snijder
Browse files
Options
Downloads
Patches
Plain Diff
fied wrong speed of light and added annotation to function
parent
bc19c3ad
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!229
Resolve L2SS-554 "Delay pointing unit tests"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/test/beam/test_delays.py
+6
-2
6 additions, 2 deletions
...ationcontrol/tangostationcontrol/test/beam/test_delays.py
with
6 additions
and
2 deletions
tangostationcontrol/tangostationcontrol/test/beam/test_delays.py
+
6
−
2
View file @
a61bf005
...
@@ -64,12 +64,16 @@ class TestAttributeTypes(base.TestCase):
...
@@ -64,12 +64,16 @@ class TestAttributeTypes(base.TestCase):
self
.
assertTrue
(
delays
==
[
0.0
])
self
.
assertTrue
(
delays
==
[
0.0
])
def
test_light_second_delay
(
self
):
def
test_light_second_delay
(
self
):
"""
This test measures the delay between 2 positions 1 light second apart.
"""
# # create a frame tied to the reference position
# # create a frame tied to the reference position
reference_itrf
=
[
3826577.066
,
461022.948
,
5064892.786
]
# CS002LBA, in ITRF2005 epoch 2012.5
reference_itrf
=
[
3826577.066
,
461022.948
,
5064892.786
]
# CS002LBA, in ITRF2005 epoch 2012.5
d
=
delay_calculator
(
reference_itrf
)
d
=
delay_calculator
(
reference_itrf
)
# set the antenna position identical to the reference position
# set the antenna position identical to the reference position
speed_of_light
=
304389329.123
#
299792458.0
speed_of_light
=
299792458.0
antenna_itrf
=
[[
reference_itrf
[
0
],
reference_itrf
[
1
]
-
speed_of_light
,
reference_itrf
[
2
]]]
# CS001LBA, in ITRF2005 epoch 2012.5
antenna_itrf
=
[[
reference_itrf
[
0
],
reference_itrf
[
1
]
-
speed_of_light
,
reference_itrf
[
2
]]]
# CS001LBA, in ITRF2005 epoch 2012.5
# # set the timestamp to solve for
# # set the timestamp to solve for
...
@@ -85,5 +89,5 @@ class TestAttributeTypes(base.TestCase):
...
@@ -85,5 +89,5 @@ class TestAttributeTypes(base.TestCase):
delays
=
d
.
convert
(
direction
,
antenna_itrf
)
delays
=
d
.
convert
(
direction
,
antenna_itrf
)
self
.
assertTrue
(
0.98
<=
delays
[
0
]
<=
1.02
)
self
.
assertTrue
(
0.98
<=
delays
[
0
]
<=
1.02
,
f
"
delays[0] =
{
delays
[
0
]
}
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment