romspline/greedy.py
def _write(self, descriptor, slim=False):
    """Write reduced order spline data to HDF5 file given a file or group descriptor"""
    if descriptor.__class__ in [h5py._hl.files.File, h5py._hl.group.Group]:
      descriptor.create_dataset('deg', data=self._deg, dtype='int')
      descriptor.create_dataset('tol', data=self.tol, dtype='double')
      descriptor.create_dataset('X', data=self.X, dtype='double', compression='gzip', shuffle=True)
      descriptor.create_dataset('Y', data=self.Y, dtype='double', compression='gzip', shuffle=True)
      if not slim:
        descriptor.create_dataset('errors', data=self.errors, dtype='double', compression='gzip', shuffle=True)
    else:
      raise Exception("Descriptor not recognized.")
Write reduced order spline data to HDF5 file given a file or group descriptor
Write reduced order spline data to HDF5 file given a file or group descriptor
Write reduced order spline data to HDF5 file given a file or group descriptor
def _write(self, descriptor, slim=False):
    if descriptor.__class__ in [h5py._hl.files.File, h5py._hl.group.Group]:
      descriptor.create_dataset('deg', data=self._deg, dtype='int')
      descriptor.create_dataset('tol', data=self.tol, dtype='double')
      descriptor.create_dataset('X', data=self.X, dtype='double', compression='gzip', shuffle=True)
      descriptor.create_dataset('Y', data=self.Y, dtype='double', compression='gzip', shuffle=True)
      if not slim:
        descriptor.create_dataset('errors', data=self.errors, dtype='double', compression='gzip', shuffle=True)
    else:
      raise Exception("Descriptor not recognized.")
def _write ( self , descriptor , slim = False ) : if descriptor . __class__ in [ h5py . _hl . files . File , h5py . _hl . group . Group ] : descriptor . create_dataset ( 'deg' , data = self . _deg , dtype = 'int' ) descriptor . create_dataset ( 'tol' , data = self . tol , dtype = 'double' ) descriptor . create_dataset ( 'X' , data = self . X , dtype = 'double' , compression = 'gzip' , shuffle = True ) descriptor . create_dataset ( 'Y' , data = self . Y , dtype = 'double' , compression = 'gzip' , shuffle = True ) if not slim : descriptor . create_dataset ( 'errors' , data = self . errors , dtype = 'double' , compression = 'gzip' , shuffle = True ) else : raise Exception ( "Descriptor not recognized." )
Write reduced order spline data to HDF5 file given a file or group descriptor
Write reduced order spline data to HDF5 file given a file or group descriptor
"""Write reduced order spline data to HDF5 file given a file or group descriptor"""
self
descriptor
slim