Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
Container registry
Model registry
Operate
Environments
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
RTSD
HDL
Commits
f93fcc77
Commit
f93fcc77
authored
6 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
#2272, changed sc4 recording
parent
34346657
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/apertif/commissioning/tests/dish_wg_sweep_data_path.py
+10
-10
10 additions, 10 deletions
...ns/apertif/commissioning/tests/dish_wg_sweep_data_path.py
with
10 additions
and
10 deletions
applications/apertif/commissioning/tests/dish_wg_sweep_data_path.py
+
10
−
10
View file @
f93fcc77
...
@@ -145,7 +145,7 @@ def start_recording_sc4(start_bsn):
...
@@ -145,7 +145,7 @@ def start_recording_sc4(start_bsn):
# clear destination folder on arts cluster
# clear destination folder on arts cluster
_user
=
'
arts
'
_user
=
'
arts
'
if
args
.
rec_dir
!=
''
:
if
args
.
rec_dir
!=
''
:
_cmd
=
'
ssh {0}@arts001
"
cd /home/{0}/test/sweeptest_sc4/; ./remove_test_dirs.sh {1}
"
>> remove_log 2>&1
'
.
format
(
_user
,
args
.
rec_dir
)
_cmd
=
'
ssh {0}@arts001
.apertif
"
cd /home/{0}/test/sweeptest_sc4/; ./remove_test_dirs.sh {1}
"
>> remove_log 2>&1
'
.
format
(
_user
,
args
.
rec_dir
)
term
.
run_cmd
(
_cmd
)
term
.
run_cmd
(
_cmd
)
# it takes about 15 unb second (1 unb-sec = 1.024 sec) to connect to arts001 and roll out the recording script over the cluster
# it takes about 15 unb second (1 unb-sec = 1.024 sec) to connect to arts001 and roll out the recording script over the cluster
...
@@ -153,18 +153,17 @@ def start_recording_sc4(start_bsn):
...
@@ -153,18 +153,17 @@ def start_recording_sc4(start_bsn):
logger
.
info
(
'
==== SC4: SET UP RECORDING ====
'
)
logger
.
info
(
'
==== SC4: SET UP RECORDING ====
'
)
# start recording on arts001.apertif cluster
# start recording on arts001.apertif cluster
record_script
=
'
record_data_multinode_halfrate.sh
'
_cmd
=
'
ssh {0}@arts001.apertif
"
cd /home/{0}/record/; ./record_data_multinode.sh -bsn {1} -nblock {2}
'
.
format
(
_user
,
start_bsn
,
args
.
rec_time
)
#record_script = 'record_data_halfrate.sh'
if
args
.
rec_dir
!=
''
:
_cmd
+=
'
-folder {0}
'
.
format
(
args
.
rec_dir
)
if
args
.
fullrate
:
if
args
.
fullrate
:
record_script
=
'
record_data_multinode_
fullrate
.sh
'
_cmd
+=
'
-
fullrate
'
if
args
.
rec_dir
!=
''
:
_cmd
+=
'"
>> record_log 2>&1 &
'
_cmd
=
'
ssh {0}@arts001
"
cd /home/{0}/record/; ./{1} -bsn {2} -nblock {3} -folder {4}
"
>> record_log 2>&1 &
'
\
.
format
(
_user
,
record_script
,
start_bsn
,
args
.
rec_time
,
args
.
rec_dir
)
logger
.
info
(
'
send
"
%s
"'
,
_cmd
)
else
:
_cmd
=
'
ssh {0}@arts001
"
cd /home/{0}/record/; ./{1} -bsn {2} -nblock {3}
"
>> record_log 2>&1 &
'
\
.
format
(
_user
,
record_script
,
start_bsn
,
args
.
rec_time
)
term
.
run_cmd
(
_cmd
)
term
.
run_cmd
(
_cmd
)
return
return
...
@@ -323,6 +322,7 @@ if __name__ == "__main__":
...
@@ -323,6 +322,7 @@ if __name__ == "__main__":
bsn_now
=
get_bsn
(
args
.
tel
)
bsn_now
=
get_bsn
(
args
.
tel
)
if
not
bsn_now
:
if
not
bsn_now
:
sys
.
exit
(
'
No BSN available
'
)
sys
.
exit
(
'
No BSN available
'
)
rec_start_bsn
=
bsn_now
+
800000
###############################################################################
###############################################################################
# Start recording on SC4 cluster
# Start recording on SC4 cluster
...
...
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