Skip to content

Commit 79068b9

Browse files
authored
Ups, fix variable names
1 parent 8d0bce6 commit 79068b9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commpy/utilities.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ def dec2bitarray(in_number, bit_width):
4646
Array containing the binary representation of all the input decimal(s).
4747
4848
"""
49-
result = np.zeros(size, 'int')
49+
result = np.zeros(bit_width, 'int')
5050
i = 1
5151
pox = 0
52-
while i <= number:
53-
if i & number:
54-
result[size - pox - 1] = 1
52+
while i <= in_number:
53+
if i & in_number:
54+
result[bit_width - pox - 1] = 1
5555
i <<= 1
5656
pox += 1
5757
return result

0 commit comments

Comments
 (0)