Skip to content

Commit

Permalink
Merge pull request #178 from cta-observatory/add_parse
Browse files Browse the repository at this point in the history
Add parse method to EventIOObject
  • Loading branch information
Dominik Neise authored May 15, 2019
2 parents ca08eea + a6498ce commit 55eb1a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eventio/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,13 @@ def __repr__(self):
def __str__(self):
return '{}[{}]'.format(self.__class__.__name__, self.header.type)

def parse(self):
raise NotImplementedError(
'Parsing of EventIO objects of type {} is not yet implemented'.format(
self.header.type
)
)


def parse_extension_field(extension_field):
'''parse the so called "extension" field from `file`
Expand Down

0 comments on commit 55eb1a2

Please sign in to comment.