code: 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")
docs: Set time in both class and hdf5 file