Bases: CondaDiagnosticProvider
Provider for PMP diagnostics.
Source code in packages/climate-ref-pmp/src/climate_ref_pmp/__init__.py
| class PMPDiagnosticProvider(CondaDiagnosticProvider):
"""
Provider for PMP diagnostics.
"""
def configure(self, config: Config) -> None:
"""Configure the provider."""
super().configure(config)
self.env_vars["PCMDI_CONDA_EXE"] = str(self.get_conda_exe())
# This is a workaround for a fatal error in internal_Finalize of MPICH
# when running in a conda environment on MacOS.
# It is not clear if this is a bug in MPICH or a problem with the conda environment.
if "FI_PROVIDER" not in os.environ: # pragma: no branch
logger.debug("Setting env variable 'FI_PROVIDER=tcp'")
self.env_vars["FI_PROVIDER"] = "tcp"
|
Configure the provider.
Source code in packages/climate-ref-pmp/src/climate_ref_pmp/__init__.py
| def configure(self, config: Config) -> None:
"""Configure the provider."""
super().configure(config)
self.env_vars["PCMDI_CONDA_EXE"] = str(self.get_conda_exe())
# This is a workaround for a fatal error in internal_Finalize of MPICH
# when running in a conda environment on MacOS.
# It is not clear if this is a bug in MPICH or a problem with the conda environment.
if "FI_PROVIDER" not in os.environ: # pragma: no branch
logger.debug("Setting env variable 'FI_PROVIDER=tcp'")
self.env_vars["FI_PROVIDER"] = "tcp"
|