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
aacb6fbd
Commit
aacb6fbd
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-771
: Improved comments a bit
parent
009309ee
No related branches found
No related tags found
1 merge request
!330
L2SS-771: Speed up delay calculations by using a lot more numpy...
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 @
aacb6fbd
...
...
@@ -81,13 +81,14 @@ class delay_calculator:
direction_vectors
=
self
.
get_direction_vector_bulk
(
pointings
)
# compute the corresponding delays
def
get_delay
(
relative_itrf
):
# compute the corresponding delays
for all directions
def
get_delay
_all_directions
(
relative_itrf
):
# Dot product between relative position and angle vector determines
# distance. Divide by speed of light to obtain delay.
return
numpy
.
inner
(
relative_itrf
,
direction_vectors
)
/
299792458.0
delays
=
numpy
.
apply_along_axis
(
get_delay
,
1
,
antenna_relative_itrfs
)
# apply for each position
delays
=
numpy
.
apply_along_axis
(
get_delay_all_directions
,
1
,
antenna_relative_itrfs
)
return
delays
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