pyupgrade --py37-plus **/*.py (#1654)

* pyupgrade --py37-plus **/*.py

* fixup! Format Python code with psf/black push
This commit is contained in:
Christian Clauss
2020-01-03 15:25:36 +01:00
committed by John Law
parent 34c808b375
commit 28419cf839
77 changed files with 71 additions and 128 deletions

View File

@ -1,4 +1,3 @@
# -*- coding: utf-8 -*-
# Author: João Gustavo A. Amorim & Gabriel Kunz
# Author email: joaogustavoamorim@gmail.com and gabriel-kunz@uergs.edu.br
# Coding date: apr 2019
@ -100,7 +99,7 @@ def emitterConverter(sizePar, data):
# Performs a template of bit positions - who should be given,
# and who should be parity
if qtdBP < sizePar:
if ((np.log(x) / np.log(2))).is_integer():
if (np.log(x) / np.log(2)).is_integer():
dataOutGab.append("P")
qtdBP = qtdBP + 1
else:
@ -170,7 +169,7 @@ def receptorConverter(sizePar, data):
# Performs a template of bit positions - who should be given,
# and who should be parity
if qtdBP < sizePar:
if ((np.log(x) / np.log(2))).is_integer():
if (np.log(x) / np.log(2)).is_integer():
dataOutGab.append("P")
qtdBP = qtdBP + 1
else:
@ -204,7 +203,7 @@ def receptorConverter(sizePar, data):
# Performs a template position of bits - who should be given,
# and who should be parity
if qtdBP < sizePar:
if ((np.log(x) / np.log(2))).is_integer():
if (np.log(x) / np.log(2)).is_integer():
dataOutGab.append("P")
qtdBP = qtdBP + 1
else: