code: def write_events(self, outname):
          
          self.make_output_dir(outname)
  
          if '.hdf' in outname:
              self.write_to_hdf(outname)
          else:
              raise ValueError('Cannot write to this format')
docs: Write the found events to a sngl inspiral table