Skip to content

Commit

Permalink
Update download link of mola32.nc from Google Drive to GitHub (#28)
Browse files Browse the repository at this point in the history
* Update download link of mola32.nc from Google Drive to GitHub

Copy available from https://github.com/andrebelem/PlanetaryMaps/blob/v1.0/mola32.nc

* Temporarily build JupyterBook from branch

* Try using conda-lock.yml to build JupyterBook

Use dependencies from lockfile rather than environment.yml file.

* Switch from setup-miniconda to setup-micromamba

Conda/mamba can't install from conda-lock.yml directly, but micromamba should be able to.

* Remove mamba list command

Packages are listed under setup-micromamba action already.

* Revert "Temporarily build JupyterBook from branch"

This reverts commit 0214c8b.
  • Loading branch information
weiji14 authored Jul 3, 2024
1 parent 7032c4e commit 35a874a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 22 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/deploy-book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,16 @@ jobs:

# Install Mambaforge with conda-forge dependencies
- name: Setup Mambaforge
uses: conda-incubator/setup-miniconda@v2.1.1
uses: mamba-org/setup-micromamba@v1.9.0
with:
activate-environment: egu22pygmt
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: strict
miniforge-version: latest
miniforge-variant: Mambaforge
mamba-version: "*"
use-mamba: true

# Show installed pkg information for postmortem diagnostic
- name: List installed packages
run: mamba list
environment-name: egu22pygmt
environment-file: conda-lock.yml
create-args: >-
python=${{ matrix.python-version }}
condarc: |
channels:
- conda-forge
- nodefaults
# Build the book
- name: Build the book
Expand Down
8 changes: 3 additions & 5 deletions book/mars_maps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,16 @@
"# Also, if you are in colab or trying from your jupyter, you will need the Mars Topography (MOLA) already in Netcdf\n",
"# a copy of the original file distributed from the Mars Climate Database,\n",
"# from the European Space Agency under ESTEC contract 11369/95/NL/JG(SC) and Centre National D'Etude Spatial\n",
"# is in the gdrive.\n",
"# is on GitHub.\n",
"\n",
"!gdown 1fDzz8AxR1T58y0IGPhmbb1ZwrTLckp2G"
"!wget https://github.com/andrebelem/PlanetaryMaps/raw/v1.0/mola32.nc"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "11b04ce1",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [],
"source": [
"import xarray as xr\n",
Expand Down
5 changes: 2 additions & 3 deletions book/mars_maps_extended.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@
},
"outputs": [],
"source": [
"\n",
"# Also, if you are in colab or trying from your jupyter, you will need the Mars Topography (MOLA) already in Netcdf\n",
"# a copy of the original file distributed from the Mars Climate Database,\n",
"# from the European Space Agency under ESTEC contract 11369/95/NL/JG(SC) and Centre National D'Etude Spatial\n",
"# is in the gdrive.\n",
"# is on GitHub.\n",
"\n",
"!gdown 1fDzz8AxR1T58y0IGPhmbb1ZwrTLckp2G"
"!wget https://github.com/andrebelem/PlanetaryMaps/raw/v1.0/mola32.nc"
]
},
{
Expand Down

0 comments on commit 35a874a

Please sign in to comment.