You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# cstar will look for os.environ["CONDA_PREFIX"] but this is not available on RTD; let's fill it with dummy
os.environ["CONDA_PREFIX"] =str(root)
We should think about whether we can move the setting of environment variables elsewhere, so that this step only happens if you actually want to make a run (this is when the environment variables are supposedly needed?), but not upon importing cstar.
If RTD is the only case in which this logic fails, it's maybe fine, but I can imagine it will fail in other cases as well.
The text was updated successfully, but these errors were encountered:
In https://github.com/CWorthy-ocean/C-Star/blob/main/cstar/base/environment.py, we set environment variables. Some of these (in particular
CONDA_PREFIX
) are not available to RTD. I therefore had to hardcode the following:C-Star/docs/conf.py
Lines 24 to 25 in fc35204
We should think about whether we can move the setting of environment variables elsewhere, so that this step only happens if you actually want to make a run (this is when the environment variables are supposedly needed?), but not upon importing
cstar
.If RTD is the only case in which this logic fails, it's maybe fine, but I can imagine it will fail in other cases as well.
The text was updated successfully, but these errors were encountered: