def as_dict(self):
        """
        Json-serializable dict representation of a kpoint
        """
        return {"lattice": self.lattice.as_dict(),
                "fcoords": list(self.frac_coords),
                "ccoords": list(self.cart_coords), "label": self.label,
                "@module": self.__class__.__module__,
                "@class": self.__class__.__name__}
def as_dict ( self ) : return { "lattice" : self . lattice . as_dict ( ) , "fcoords" : list ( self . frac_coords ) , "ccoords" : list ( self . cart_coords ) , "label" : self . label , "@module" : self . __class__ . __module__ , "@class" : self . __class__ . __name__ }
Json-serializable dict representation of a kpoint