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
0c87fd2f
Commit
0c87fd2f
authored
13 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #2669: Don't redirect stations in R00R01. Cleanup of list of fake stations.
parent
9910af66
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
RTCP/Run/src/LOFAR/Core.py
+1
-1
1 addition, 1 deletion
RTCP/Run/src/LOFAR/Core.py
RTCP/Run/src/LOFAR/Stations.py
+4
-5
4 additions, 5 deletions
RTCP/Run/src/LOFAR/Stations.py
with
5 additions
and
6 deletions
RTCP/Run/src/LOFAR/Core.py
+
1
−
1
View file @
0c87fd2f
...
@@ -43,7 +43,7 @@ def buildParset( parset = None, args = "", olapparset = "OLAP.parset", partition
...
@@ -43,7 +43,7 @@ def buildParset( parset = None, args = "", olapparset = "OLAP.parset", partition
assert
"
run
"
not
in
defaultObsParams
assert
"
run
"
not
in
defaultObsParams
# always assume the stations will be sending to the rack we will be using
# always assume the stations will be sending to the rack we will be using
if
partition
:
if
partition
and
partition
!=
"
R00R01
"
:
overrideRack
(
Stations
,
int
(
partition
[
2
])
)
overrideRack
(
Stations
,
int
(
partition
[
2
])
)
# ========== Observations
# ========== Observations
...
...
This diff is collapsed.
Click to expand it.
RTCP/Run/src/LOFAR/Stations.py
+
4
−
5
View file @
0c87fd2f
...
@@ -20,7 +20,8 @@ def overrideRack( stations, rack ):
...
@@ -20,7 +20,8 @@ def overrideRack( stations, rack ):
for
s
in
stations
:
for
s
in
stations
:
for
t
in
stations
[
s
]:
for
t
in
stations
[
s
]:
octets
=
t
.
ionode
.
split
(
"
.
"
)
octets
=
t
.
ionode
.
split
(
"
.
"
)
t
.
ionode
=
"
%s.%s.%s.%s
"
%
(
octets
[
0
],
octets
[
1
],
rack
,
octets
[
3
])
if
octets
[
0
]
==
"
10
"
and
octets
[
1
]
==
"
170
"
:
# only process stations connected to BG/P
t
.
ionode
=
"
%s.%s.%s.%s
"
%
(
octets
[
0
],
octets
[
1
],
rack
,
octets
[
3
])
def
packetAnalysis
(
name
,
ip
,
port
):
def
packetAnalysis
(
name
,
ip
,
port
):
location
=
os
.
popen
(
"
which packetanalysis
"
).
read
().
strip
()
location
=
os
.
popen
(
"
which packetanalysis
"
).
read
().
strip
()
...
@@ -278,9 +279,6 @@ def defineStations( s ):
...
@@ -278,9 +279,6 @@ def defineStations( s ):
# Special stations, one-time stations, etc.
# Special stations, one-time stations, etc.
s
.
update
(
{
s
.
update
(
{
"
Pulsar
"
:
[
Station
(
'
Pulsar
'
,
'
10.170.0.30
'
,
[
'
0.0.0.0:4346
'
])],
"
twoears
"
:
[
Station
(
'
CS302HBA0
'
,
'
10.170.0.133
'
,
[
'
0.0.0.0:4346
'
]),
Station
(
'
CS302HBA1
'
,
'
10.170.0.134
'
,
[
'
0.0.0.0:4347
'
])],
}
)
}
)
# Standard configurations
# Standard configurations
...
@@ -337,7 +335,8 @@ if __name__ == "__main__":
...
@@ -337,7 +335,8 @@ if __name__ == "__main__":
parser
.
print_help
()
parser
.
print_help
()
sys
.
exit
(
0
)
sys
.
exit
(
0
)
overrideRack
(
Stations
,
int
(
options
.
partition
[
2
])
)
if
options
.
partition
!=
"
R00R01
"
:
overrideRack
(
Stations
,
int
(
options
.
partition
[
2
])
)
for
stationName
in
args
:
for
stationName
in
args
:
# print the inputs of a single station
# print the inputs of a single station
...
...
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