Commit 8a6f4d3d authored by Lukas Platz's avatar Lukas Platz
Browse files

Make environment variable name upper case

parent c90a19e4
Pipeline #64948 passed with stages
in 8 minutes and 14 seconds
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
def parallelization_scheme(): def parallelization_scheme():
"""Sets the MPI parallelization scheme according to the """Sets the MPI parallelization scheme according to the
environment variable `NIFTy_MPI_SCHEME`. environment variable `NIFTY_MPI_SCHEME`.
If not set, "Standard" parallelization is used. If not set, "Standard" parallelization is used.
...@@ -48,7 +48,7 @@ def parallelization_scheme(): ...@@ -48,7 +48,7 @@ def parallelization_scheme():
"None": Disables all parallelization. "None": Disables all parallelization.
""" """
import os import os
scheme = os.getenv("NIFTy_MPI_SCHEME", default="Standard") scheme = os.getenv("NIFTY_MPI_SCHEME", default="Standard")
if scheme not in ["Standard", "Samples", "None"]: if scheme not in ["Standard", "Samples", "None"]:
raise ValueError("Unrecognized MPI parallelization scheme!") raise ValueError("Unrecognized MPI parallelization scheme!")
return scheme return scheme
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment