def pack(cell): '''Pack the input args of :class:`Cell` to a dict, which can be serialized with :mod:`pickle` ''' cldic = mole.pack(cell) cldic['a'] = cell.a cldic['gs'] = cell.gs cldic['precision'] = cell.precision cldic['pseudo'] = cell.pseudo cldic['ke_cutoff'] = cell.ke_cutoff cldic['rcut'] = cell.rcut cldic['ew_eta'] = cell.ew_eta cldic['ew_cut'] = cell.ew_cut cldic['dimension'] = cell.dimension return cldic
def pack(cell): '''Pack the input args of :class:`Cell` to a dict, which can be serialized with :mod:`pickle` ''' cldic = mole.pack(cell) cldic['h'] = cell.h cldic['gs'] = cell.gs cldic['precision'] = cell.precision cldic['pseudo'] = cell.pseudo cldic['ke_cutoff'] = cell.ke_cutoff cldic['nimgs'] = cell.nimgs cldic['ew_eta'] = cell.ew_eta cldic['ew_cut'] = cell.ew_cut cldic['dimension'] = cell.dimension return cldic