Skip to content
Snippets Groups Projects
Commit d3e0b3b5 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-382: Replace Python2 integer division (/) with Python3 one (//)

parent 10ddfbcb
No related branches found
No related tags found
No related merge requests found
...@@ -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,:]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment