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
49103696
Commit
49103696
authored
5 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
SSB-47
: implementing selection of the beam specification file path
parent
188cc55c
No related branches found
No related tags found
1 merge request
!44
Merge back holography to master
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CAL/CalibrationCommon/lib/mshologextract.py
+6
-3
6 additions, 3 deletions
CAL/CalibrationCommon/lib/mshologextract.py
CAL/CalibrationCommon/lib/utils.py
+3
-3
3 additions, 3 deletions
CAL/CalibrationCommon/lib/utils.py
with
9 additions
and
6 deletions
CAL/CalibrationCommon/lib/mshologextract.py
+
6
−
3
View file @
49103696
...
@@ -182,16 +182,19 @@ def read_holography_datasets_and_store(holography_observation_path,
...
@@ -182,16 +182,19 @@ def read_holography_datasets_and_store(holography_observation_path,
if
holography_ms_path
is
not
None
:
if
holography_ms_path
is
not
None
:
raise
NotImplementedError
()
raise
NotImplementedError
()
if
holography_bsf_path
is
not
None
:
if
holography_bsf_path
is
not
None
:
raise
NotImplementedError
()
if
not
os
.
path
.
exists
(
holography_bsf_path
):
raise
FileNotFoundError
(
holography_bsf_path
)
else
:
holography_bsf_path
=
holography_observation_path
if
calibration_tables_path
is
None
:
if
calibration_tables_path
is
None
:
calibration_tables_path
=
holography_observation_path
calibration_tables_path
=
holography_observation_path
target_station_names
=
list_all_target_stations
(
holography_
o
bs
ervation
_path
)
target_station_names
=
list_all_target_stations
(
holography_bs
f
_path
)
logger
.
debug
(
'
target station names %s
'
,
target_station_names
)
logger
.
debug
(
'
target station names %s
'
,
target_station_names
)
matched_bsf_ms_pair
=
\
matched_bsf_ms_pair
=
\
match_holography_beam_specification_file_with_observation
(
holography_observation_path
)
match_holography_beam_specification_file_with_observation
(
holography_bsf_path
,
holography_observation_path
)
logger
.
debug
(
'
matched beam specification files and measurement sets: %s
'
,
logger
.
debug
(
'
matched beam specification files and measurement sets: %s
'
,
matched_bsf_ms_pair
)
matched_bsf_ms_pair
)
...
...
This diff is collapsed.
Click to expand it.
CAL/CalibrationCommon/lib/utils.py
+
3
−
3
View file @
49103696
...
@@ -24,9 +24,9 @@ def is_observation_in_range(start, end, from_datetime, to_datetime):
...
@@ -24,9 +24,9 @@ def is_observation_in_range(start, end, from_datetime, to_datetime):
return
start_in_range
and
end_in_range
return
start_in_range
and
end_in_range
def
match_holography_beam_specification_file_with_observation
(
path
):
def
match_holography_beam_specification_file_with_observation
(
bsf_path
,
observation_
path
):
bsf_files
=
list_bsf_files_in_path
(
path
)
bsf_files
=
list_bsf_files_in_path
(
bsf_
path
)
observation_list
=
list_observations_in_path
(
path
)
observation_list
=
list_observations_in_path
(
observation_
path
)
logger
.
debug
(
'
specification files found %s
'
,
bsf_files
)
logger
.
debug
(
'
specification files found %s
'
,
bsf_files
)
logger
.
debug
(
'
observation files found %s
'
,
observation_list
)
logger
.
debug
(
'
observation files found %s
'
,
observation_list
)
matched_observation_bsf_pair
=
[]
matched_observation_bsf_pair
=
[]
...
...
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