Skip to content

Commit

Permalink
Allow PBFHEAD=ProtoR1.CameraEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnoe committed Jun 21, 2023
1 parent e411b09 commit bb6ddb3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ctapipe_io_lst/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,13 @@ def is_compatible(file_path):
log.debug("Missing PBFHEAD key")
return False

Check warning on line 628 in src/ctapipe_io_lst/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/__init__.py#L627-L628

Added lines #L627 - L628 were not covered by tests

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

Check warning on line 638 in src/ctapipe_io_lst/__init__.py

View check run for this annotation

Codecov / codecov/patch

src/ctapipe_io_lst/__init__.py#L637-L638

Added lines #L637 - L638 were not covered by tests

Expand Down

0 comments on commit bb6ddb3

Please sign in to comment.