1.1 --- a/imiptools/period.py Tue Oct 24 01:05:08 2017 +0200
1.2 +++ b/imiptools/period.py Tue Oct 24 18:57:49 2017 +0200
1.3 @@ -178,6 +178,10 @@
1.4 return start_point(self) >= start_point(other) and \
1.5 end_point(self) <= end_point(other)
1.6
1.7 + def wraps(self, other):
1.8 + return start_point(self) <= start_point(other) and \
1.9 + end_point(self) >= end_point(other)
1.10 +
1.11 def common(self, other):
1.12 start = max(start_point(self), start_point(other))
1.13 end = min(end_point(self), end_point(other))