Skip to content
GitLab
Explore
Sign in
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
0276bc79
Commit
0276bc79
authored
8 years ago
by
Arno Schoenmakers
Browse files
Options
Downloads
Patches
Plain Diff
TAsk #6518: make sure ppstune produces properly formatted Blitzarray files on the new 64bit systems
parent
ffeaea9a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
LCU/PPSTune/ppstune/ppstune.py
+6
-1
6 additions, 1 deletion
LCU/PPSTune/ppstune/ppstune.py
with
6 additions
and
1 deletion
LCU/PPSTune/ppstune/ppstune.py
+
6
−
1
View file @
0276bc79
...
@@ -15,6 +15,7 @@ import signal, inspect
...
@@ -15,6 +15,7 @@ import signal, inspect
import
subprocess
import
subprocess
import
logging
import
logging
import
pwd
import
pwd
import
platform
;
from
math
import
log
,
floor
from
math
import
log
,
floor
...
@@ -1967,7 +1968,11 @@ def pps_delays_conf(station, clock_mhz, start_date, pps_delays):
...
@@ -1967,7 +1968,11 @@ def pps_delays_conf(station, clock_mhz, start_date, pps_delays):
'''
'''
user
=
pwd
.
getpwuid
(
os
.
getuid
()).
pw_name
user
=
pwd
.
getpwuid
(
os
.
getuid
()).
pw_name
header
=
header_format
%
((
station
,
user
)
+
gmtime_tuple
(
start_date
)
+
(
clock_mhz
,))
header
=
header_format
%
((
station
,
user
)
+
gmtime_tuple
(
start_date
)
+
(
clock_mhz
,))
contents
=
header
+
str
(
len
(
pps_delays
))
+
'
[
\n
'
if
(
platform
.
machine
()
==
"
x86_64
"
):
contents
=
header
+
'
(0,
'
+
str
(
len
(
pps_delays
)
-
1
)
+
'
) [
\n
'
else
:
contents
=
header
+
str
(
len
(
pps_delays
))
+
'
[
\n
'
for
subrack
in
range
(
len
(
pps_delays
)
/
16
):
for
subrack
in
range
(
len
(
pps_delays
)
/
16
):
subrack_delays
=
pps_delays
[
subrack
*
16
:(
subrack
+
1
)
*
16
]
subrack_delays
=
pps_delays
[
subrack
*
16
:(
subrack
+
1
)
*
16
]
contents
+=
'
'
.
join
([(
'
%3d
'
%
step
)
for
step
in
subrack_delays
])
contents
+=
'
'
.
join
([(
'
%3d
'
%
step
)
for
step
in
subrack_delays
])
...
...
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