mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
pyupgrade --py37-plus **/*.py (#1654)
* pyupgrade --py37-plus **/*.py * fixup! Format Python code with psf/black push
This commit is contained in:

committed by
John Law

parent
34c808b375
commit
28419cf839
@ -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:
|
||||
|
Reference in New Issue
Block a user