Changeset 57c81ef in ammosreader


Ignore:
Timestamp:
06/28/22 12:47:10 (3 years ago)
Author:
Enrico Schwass <ennoausberlin@…>
Branches:
AmmosSource, guix
Children:
72b50cd
Parents:
9951793
Message:

fix that checks MAGIC_WORD in class not instance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ammosreader/AmmosGlobalFrameHeader.py

    r9951793 r57c81ef  
    2828    def __init__(self, magic_word, frame_length, running_frame_number, frame_type, data_header_length, reserved):
    2929
    30         if magic_word != self.MAGIC_WORD:
     30        if magic_word != type(self).MAGIC_WORD:
    3131            print("Wrong magic word")
    3232            self.magic_word = magic_word
    33             return None
    3433        else:
    3534            self.magic_word = magic_word
Note: See TracChangeset for help on using the changeset viewer.