Skip to content

Cast return of SegmentList.extent back to gwpy Segment object

This PR adds a new decorator in gwpy.utils.decorator to cast the return of a function to a specific type, and then uses that to force SegmentList.extent to return a gwpy.segments.Segment object.

Merge request reports