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
d3e0b3b5
Commit
d3e0b3b5
authored
6 years ago
by
Thomas Jürges
Browse files
Options
Downloads
Patches
Plain Diff
SW-382
: Replace Python2 integer division (/) with Python3 one (//)
parent
10ddfbcb
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/checkhardware/checkhardware_lib/data.py
+2
-2
2 additions, 2 deletions
LCU/checkhardware/checkhardware_lib/data.py
with
2 additions
and
2 deletions
LCU/checkhardware/checkhardware_lib/data.py
+
2
−
2
View file @
d3e0b3b5
...
@@ -66,7 +66,7 @@ class AntennaData:
...
@@ -66,7 +66,7 @@ class AntennaData:
return
self
.
_n_rcus
return
self
.
_n_rcus
def
antenna
(
self
,
rcu
):
def
antenna
(
self
,
rcu
):
ant
=
rcu
/
2
ant
=
rcu
/
/
2
if
self
.
_rcu_info
[
str
(
rcu
)][
'
mode
'
]
in
(
'
1
'
,
'
2
'
):
if
self
.
_rcu_info
[
str
(
rcu
)][
'
mode
'
]
in
(
'
1
'
,
'
2
'
):
ant
+=
48
ant
+=
48
return
ant
return
ant
...
@@ -243,7 +243,7 @@ class AntennaData:
...
@@ -243,7 +243,7 @@ class AntennaData:
if
(
n_samples
%
512
)
>
0
:
if
(
n_samples
%
512
)
>
0
:
logger
.
warning
(
"
data error: number of samples (%d) not multiple of 512 in
'
%f
'"
%
(
logger
.
warning
(
"
data error: number of samples (%d) not multiple of 512 in
'
%f
'"
%
(
n_samples
,
full_filename
))
n_samples
,
full_filename
))
n_frames
=
n_samples
/
512
n_frames
=
n_samples
/
/
512
data
=
data
.
reshape
(
n_frames
,
512
)
data
=
data
.
reshape
(
n_frames
,
512
)
#logger.info("recorded data shape %s" %(str(data.shape)))
#logger.info("recorded data shape %s" %(str(data.shape)))
return
data
[:
self
.
_requested_seconds
,:]
return
data
[:
self
.
_requested_seconds
,:]
...
...
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