def merge_overlaps(self):
overlaps = np.array(self.find_overlaps(index=True))<EOL>if not overlaps.any():<EOL><INDENT>return<EOL><DEDENT>for overlap in overlaps:<EOL><INDENT>before = self[overlap].copy()<EOL>after = self[overlap + <NUM_LIT:1>].copy()<EOL>del self[overlap]<EOL>del self[overlap]<EOL>new_segment = before.merge(after)<EOL>self.__insert(overlap, new_segment)<EOL>overlaps += <NUM_LIT:1><EOL><DEDENT>return<EOL>
Merges overlaps by merging overlapping Intervals.

The function takes no arguments and returns ``None``. It operates on
the striplog 'in place'

TODO: This function will not work if any interval overlaps more than
    one other intervals at either its base or top.