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
4abf26e2
Commit
4abf26e2
authored
5 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
SW-833
: testing and logging
parent
2925ae11
No related branches found
No related tags found
1 merge request
!77
SW-834: Resolve SW-834
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAC/TBB/lib/tbb_restart_recording.py
+6
-2
6 additions, 2 deletions
MAC/TBB/lib/tbb_restart_recording.py
with
6 additions
and
2 deletions
MAC/TBB/lib/tbb_restart_recording.py
+
6
−
2
View file @
4abf26e2
...
@@ -16,11 +16,11 @@ from lofar.common.lcu_utils import translate_user_station_string_into_station_li
...
@@ -16,11 +16,11 @@ from lofar.common.lcu_utils import translate_user_station_string_into_station_li
def
restart_tbb_recording
(
stations
):
def
restart_tbb_recording
(
stations
):
logging
.
info
(
"
Restarting TBB recording
"
)
stations
=
translate_user_station_string_into_station_list
(
stations
)
stations
=
translate_user_station_string_into_station_list
(
stations
)
station_hostname_csv_string
=
'
,
'
.
join
(
stationname2hostname
(
s
)
for
s
in
stations
)
station_hostname_csv_string
=
'
,
'
.
join
(
stationname2hostname
(
s
)
for
s
in
stations
)
logging
.
info
(
"
Restarting TBB recording on stations %s
"
,
stations
)
relay
=
lcurun_command
+
[
station_hostname_csv_string
]
relay
=
lcurun_command
+
[
station_hostname_csv_string
]
cmd
=
relay
+
[
tbb_command
,
"
--record
"
]
cmd
=
relay
+
[
tbb_command
,
"
--record
"
]
logging
.
info
(
"
Executing %s
"
%
"
"
.
join
(
cmd
))
logging
.
info
(
"
Executing %s
"
%
"
"
.
join
(
cmd
))
...
@@ -35,3 +35,7 @@ def parse_args():
...
@@ -35,3 +35,7 @@ def parse_args():
def
main
():
def
main
():
args
=
parse_args
()
args
=
parse_args
()
restart_tbb_recording
(
args
.
stations
)
restart_tbb_recording
(
args
.
stations
)
if
__name__
==
'
__main__
'
:
logging
.
basicConfig
(
format
=
'
%(asctime)s %(levelname)s %(message)s
'
,
level
=
logging
.
INFO
)
main
()
\ 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