Skip to content

Commit

Permalink
docker: new xclim 0.44.0 should fix popmean.shape[axis] error so we c…
Browse files Browse the repository at this point in the history
…an move to py310

See Ouranosinc/PAVICS-landing#65
  • Loading branch information
tlvu committed Jun 24, 2023
1 parent d2c89f6 commit 1e010a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,8 @@ COPY environment.yml /environment.yml
# Conda was stuck at this step:
# DEBUG conda.common._logic:_run_sat(607): Invoking SAT with clause count: 2500273
#
# Python 3.10 cause this "ValueError: `popmean.shape[axis]` must equal 1." in
# homepage nb 4, see https://github.com/Ouranosinc/PAVICS-landing/issues/65
RUN umask 0000 && \
mamba create --name birdy --channel conda-forge --channel defaults xclim ravenpy python=3.9 --yes && \
mamba create --name birdy --channel conda-forge --channel defaults xclim ravenpy python=3.10 --yes && \
mamba env update --name birdy --file /environment.yml && \
mamba clean --all --yes

Expand Down
2 changes: 1 addition & 1 deletion docker/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:

# Pin latest xclim and ravenpy to avoid downgrading during the second installation phase.
# Mamba is quicker to solve dependencies than conda, but it is less precise so accidental downgrades can happen.
- xclim >= 0.43.0
- xclim >= 0.44.0
- ravenpy >= 0.12.1

#- dask # from xclim and ravenpy
Expand Down

0 comments on commit 1e010a9

Please sign in to comment.