[docs]@dataclasses.dataclassclassMACEMPModel:"""Interface for the MACE model. For more information, see: - https://github.com/ACEsuit/mace """model:Optional[Union[str,Path]]=Nonedevice:str=""default_dtype:str="float32"dispersion:bool=Falsedamping:Literal["zero","bj","zerom","bjm"]="bj"dispersion_xc:str="pbe"dispersion_cutoff:float=40.0*units.Bohrmodel_path:Optional[Path]=zntrack.deps_path(None)
[docs]defget_calculator(self,**kwargs):"""Get an xtb ase calculator."""try:frommace.calculatorsimportmace_mpexceptImportError:log.warning("No `mace-torch` installation found. ""See https://github.com/ACEsuit/mace for more information.")raisereturnmace_mp(model=self.model,device=self.device,default_dtype=self.default_dtype,dispersion=self.dispersion,damping=self.damping,dispersion_xc=self.dispersion_xc,dispersion_cutoff=self.dispersion_cutoff,)