Skip to content

Commit

Permalink
Allow ProtoR1.CameraEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jun 21, 2023
1 parent 9200a6b commit 2f665af
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,6 @@ def is_compatible(file_path):
return False

header = hdul["Events"].header
ttypes = {
value for key, value in header.items()
if 'TTYPE' in key
}
except Exception as e:
log.debug(f"Error trying to open input file as fits: {e}")
return False
Expand All @@ -458,7 +454,7 @@ def is_compatible(file_path):
log.debug("Missing PBFHEAD key")
return False

if proto_class not in {"R1.CameraEvent", "CTAR1.Event"}:
if proto_class not in {"R1.CameraEvent", "ProtoR1.CameraEvent"}:
log.debug(f"Unsupported PBDHEAD: {proto_class}")
return False

Expand Down

0 comments on commit 2f665af

Please sign in to comment.