code: def postprocess_segments(self):
          
          # make segs a list of mask arrays, it's easier to store
          # as there is a hdf5 equivalent
          for iseg, seg in enumerate(self.segs):
              mask = np.zeros(self._adata.shape[0], dtype=bool)
              mask[seg] = True
              self.segs[iseg] = mask
          # convert to arrays
          self.segs = np.array(self.segs)
          self.segs_tips = np.array(self.segs_tips)
docs: Convert the format of the segment class members.