def METHOD_NAME(self):
    kpoints = self.input["kpoints"]
    if isinstance(kpoints, str):
        kpoints = self.input["kpoints"].replace("[", "").replace("]", "").split()
    self._create_working_directory()
    calc = GPAWcode(
        mode=PW(float(self.input["encut"])),
        xc=self.input["potential"],
        occupations=MethfesselPaxton(width=float(self.input["sigma"])),
        kpts=kpoints,
        txt=self.working_directory + "/" + self.job_name + ".txt",
    )
    self.structure.calc = calc