Skip to content

Commit

Permalink
Merge pull request #70 from des-science/ftivd-env
Browse files Browse the repository at this point in the history
ENH parse environment variables in conda prefix for fitvd step
  • Loading branch information
beckermr authored Jul 10, 2024
2 parents ea4edcc + 7ffb68e commit 4010520
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions eastlake/steps/fitvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,11 @@ def __init__(self, config, base_dir, name="fitvd",

# fitvd relies on an older version of ngmix; here, we use a separate conda
# environment to run these codes.
if (CONDA_PREFIX := self.config.get("conda_prefix", None)) is not None:
if (_conda_prefix := self.config.get("conda_prefix", None)) is not None:
conda_prefix = os.path.expanduser(os.path.expandvars(_conda_prefix))
CMD_PREFIX = [
"conda", "run",
"--prefix", CONDA_PREFIX,
"--prefix", conda_prefix,
]
else:
CMD_PREFIX = []
Expand Down

0 comments on commit 4010520

Please sign in to comment.