Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
c8abab6a
Commit
c8abab6a
authored
6 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
SSB-42
: minor fix, and add function to list for all the target station
present in the observation path
parent
2a8eca63
No related branches found
No related tags found
Loading
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CAL/CalibrationCommon/lib/utils.py
+8
-0
8 additions, 0 deletions
CAL/CalibrationCommon/lib/utils.py
with
8 additions
and
0 deletions
CAL/CalibrationCommon/lib/utils.py
+
8
−
0
View file @
c8abab6a
...
@@ -28,6 +28,7 @@ def match_holography_beam_specification_file_with_observation(path):
...
@@ -28,6 +28,7 @@ def match_holography_beam_specification_file_with_observation(path):
observation_list
=
HolographyObservation
.
list_observations_in_path
(
path
)
observation_list
=
HolographyObservation
.
list_observations_in_path
(
path
)
matched_observation_bsf_pair
=
[]
matched_observation_bsf_pair
=
[]
for
bsf_file
in
bsf_files
:
for
bsf_file
in
bsf_files
:
bsf_file
.
read_file
()
for
observation
in
observation_list
:
for
observation
in
observation_list
:
if
is_observation_in_range
(
observation
.
start_datetime
,
if
is_observation_in_range
(
observation
.
start_datetime
,
observation
.
end_datetime
,
observation
.
end_datetime
,
...
@@ -39,3 +40,10 @@ def match_holography_beam_specification_file_with_observation(path):
...
@@ -39,3 +40,10 @@ def match_holography_beam_specification_file_with_observation(path):
return
matched_observation_bsf_pair
return
matched_observation_bsf_pair
def
list_all_target_stations
(
observation_path
):
bsf_files
=
HolographySpecification
.
list_bsf_files_in_path
(
observation_path
)
target_station_name_set
=
set
()
for
bsf_file
in
bsf_files
:
bsf_file
.
read_file
()
target_station_name_set
.
update
(
bsf_file
.
target_station_names
)
return
list
(
target_station_name_set
)
\ No newline at end of file
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