astropy.stats
astropy.stats.
interval_overlap_length
Compute the length of overlap of two intervals.
The two intervals.
The length of the overlap between the two intervals.