code: def remove_short_sci_segs(self, minSegLength):
          
          newsegment_list = segments.segmentlist()
          for key, seglist in self.segment_dict.items():
              newsegment_list = segments.segmentlist()
              for seg in seglist:
                  if abs(seg) > minSegLength:
                      newsegment_list.append(seg)
              newsegment_list.coalesce()
              self.segment_dict[key] = newsegment_list
          self.to_segment_xml(override_file_if_exists=True)
docs: Function to remove all science segments
          shorter than a specific length. Also updates the file on disk to remove
          these segments.
  
          Parameters
          -----------
          minSegLength : int
              Maximum length of science segments. Segments shorter than this will
              be removed.