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
964ab66b
Commit
964ab66b
authored
2 years ago
by
Stefano Di Frischia
Committed by
Corné Lukken
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-572
: improve assert statements
parent
b04976d5
No related branches found
No related tags found
1 merge request
!396
Resolve L2SS-572 "Refactor delays"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/beam/delays.py
+4
-3
4 additions, 3 deletions
tangostationcontrol/tangostationcontrol/beam/delays.py
with
4 additions
and
3 deletions
tangostationcontrol/tangostationcontrol/beam/delays.py
+
4
−
3
View file @
964ab66b
...
@@ -15,7 +15,7 @@ class Delays:
...
@@ -15,7 +15,7 @@ class Delays:
frame_location
=
measure
.
position
(
"
ITRF
"
,
*
[
f
"
{
x
}
m
"
for
x
in
itrf
])
frame_location
=
measure
.
position
(
"
ITRF
"
,
*
[
f
"
{
x
}
m
"
for
x
in
itrf
])
result
=
measure
.
do_frame
(
frame_location
)
result
=
measure
.
do_frame
(
frame_location
)
assert
result
==
True
assert
result
==
True
,
f
"
measure.do_frame failed for ITRF location
{
itrf
}
"
self
.
reference_itrf
=
itrf
self
.
reference_itrf
=
itrf
self
.
measure
=
measure
self
.
measure
=
measure
...
@@ -23,10 +23,11 @@ class Delays:
...
@@ -23,10 +23,11 @@ class Delays:
def
set_measure_time
(
self
,
utc_time
:
datetime
.
datetime
):
def
set_measure_time
(
self
,
utc_time
:
datetime
.
datetime
):
"""
Configure the measure object for the specified time.
"""
"""
Configure the measure object for the specified time.
"""
frame_time
=
self
.
measure
.
epoch
(
"
UTC
"
,
utc_time
.
isoformat
(
'
'
))
utc_time_str
=
utc_time
.
isoformat
(
'
'
)
frame_time
=
self
.
measure
.
epoch
(
"
UTC
"
,
utc_time_str
)
result
=
self
.
measure
.
do_frame
(
frame_time
)
result
=
self
.
measure
.
do_frame
(
frame_time
)
assert
result
==
True
assert
result
==
True
,
f
"
measure.do_frame failed for UTC time
{
utc_time_str
}
"
def
get_direction_vector
(
self
,
pointing
:
numpy
.
ndarray
)
->
numpy
.
ndarray
:
def
get_direction_vector
(
self
,
pointing
:
numpy
.
ndarray
)
->
numpy
.
ndarray
:
"""
Compute direction vector for a given pointing, relative to the measure.
"""
"""
Compute direction vector for a given pointing, relative to the measure.
"""
...
...
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