from_code

classmethod FermiSurface.from_code(code, dirpath, reduce_bands_near_fermi: bool = False, reduce_bands_near_energy: float | None = None, reduce_bands_by_index: List[int] | None = None, padding: int = 10, fermi: float | None = None, fermi_shift: float = 0.0, **kwargs)[source]