def write_tfrs(fname, tfr, overwrite=False):
 out = []
 if (not isinstance(tfr, (list, tuple))):
  tfr = [tfr]
 for (ii, tfr_) in enumerate(tfr):
  comment = (ii if (tfr_.comment is None) else tfr_.comment)
  out.append(_prepare_write_tfr(tfr_, condition=comment))
 write_hdf5(fname, out, overwrite=overwrite, title='mnepython')

def write_tfrs ( fname , tfr , overwrite = False ) : out = [ ] if ( not isinstance ( tfr , ( list , tuple ) ) ) : tfr = [ tfr ] for ( ii , tfr_ ) in enumerate ( tfr ) : comment = ( ii if ( tfr_ . comment is None ) else tfr_ . comment ) out . append ( _prepare_write_tfr ( tfr_ , condition = comment ) ) write_hdf5 ( fname , out , overwrite = overwrite , title = 'mnepython' )
write a tfr dataset to hdf5 .