def _set_time(self, time):
        """ Set time in both class and hdf5 file
        """
        if len(self.time) == 0 :
            self.time = np.array(time)
            if self.h5 is not None:
                self.h5.create_dataset('time', self.time.shape, dtype=self.time.dtype, data=self.time, compression="gzip", shuffle=True, scaleoffset=3)
        else:
            if(len(time) != len(self.time)):
                raise AssertionError("\nTime or number of frame mismatch in input files.\n Exiting...\n")
def _set_time ( self , time ) : if len ( self . time ) == 0 : self . time = np . array ( time ) if self . h5 is not None : self . h5 . create_dataset ( 'time' , self . time . shape , dtype = self . time . dtype , data = self . time , compression = "gzip" , shuffle = True , scaleoffset = 3 ) else : if ( len ( time ) != len ( self . time ) ) : raise AssertionError ( "\nTime or number of frame mismatch in input files.\n Exiting...\n" )
Set time in both class and hdf5 file