def save(self, filename, name="data"):
        import tables
        if isinstance(filename, str):
            fname, ext = os.path.splitext(filename)
            if ext in (".hdf", ".h5"):
                h5 = tables.openFile(filename, "a")
                _hdf_init(h5)
                self._write_hdf(h5, name=name)
                h5.close()
            else:
                raise TypeError('Unknown file type')
        elif isinstance(filename, tables.File):
            self._write_hdf(filename, name=name)
Clear the current trace buffer
dataset/ETHPy150Open gallantlab/pycortex/cortex/dataset.py/VolumeData.save--crossover with--dataset/ETHPy150Open EiNSTeiN-/idapython/python/idc.py/ClearTraceFile