Changeset be36a02 in ammosreader


Ignore:
Timestamp:
09/03/23 17:59:39 (21 months ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
guix
Children:
fdb2f00
Parents:
a8f6b97
Message:

bin keyword added to BitArray

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/PDW.py

    ra8f6b97 rbe36a02  
    6868        fifth_word_bit_string = "0" * padding + str(fifth_word)[2:]
    6969        frequency_shift_or_bandwidth = int(fifth_word_bit_string[0:20], 2)
    70         pulse_level_or_pulse_field_strength = BitArray(fifth_word_bit_string[20:32]).int
     70        pulse_level_or_pulse_field_strength = BitArray(bin=fifth_word_bit_string[20:32]).int
    7171
    7272        sixth_word = bin(int.from_bytes(parts[4], byteorder='little'))
Note: See TracChangeset for help on using the changeset viewer.