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 befa367 commit 2c315fcCopy full SHA for 2c315fc
commpy/utilities.py
@@ -47,7 +47,7 @@ def dec2bitarray(in_number, bit_width):
47
48
"""
49
50
- if type(in_number) == int:
+ if isinstance(in_number, np.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