We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c315fc commit c67aa2aCopy full SHA for c67aa2a
commpy/utilities.py
@@ -47,7 +47,7 @@ def dec2bitarray(in_number, bit_width):
47
48
"""
49
50
- if isinstance(in_number, np.int):
+ if isinstance(in_number, (np.integer, int)):
51
return decimal2bitarray(in_number, bit_width)
52
result = np.zeros(bit_width * len(in_number), 'int')
53
for pox, number in enumerate(in_number):
0 commit comments