Skip to content

Commit

Permalink
Merge pull request #47 from sepal-contrib/fix_sepal
Browse files Browse the repository at this point in the history
  • Loading branch information
dfguerrerom authored Aug 29, 2023
2 parents 7b7c7c4 + 4c24f85 commit 9d612c3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: "3.10"
- name: Install mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: 'build-environment.yml'
environment-file: "build-environment.yml"
init-shell: bash
- name: Build the JupyterLite site
shell: bash -l {0}
Expand Down
10 changes: 5 additions & 5 deletions build-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: build-env
channels:
- conda-forge
dependencies:
- 'python'
- 'pip'
- 'sepal-ui'
- "python"
- "pip"
- "sepal-ui"
- pip:
- voici>=0.4.4,<0.5.0
- jupyterlite-xeus-python>=0.8.1,<0.9.0
- voici>=0.4.4,<0.5.0
- jupyterlite-xeus-python>=0.8.1,<0.9.0
6 changes: 3 additions & 3 deletions component/scripts/planet.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import re
from datetime import datetime
from typing import Dict, List, Tuple

import requests
from geopandas import GeoDataFrame
Expand All @@ -25,7 +26,7 @@
) # NICFI bianual


def mosaic_name(mosaic: str) -> tuple[str, str]:
def mosaic_name(mosaic: str) -> Tuple[str, str]:
"""Give back the shorten name of the mosaic so that it can be displayed on the thumbnails.
Args:
Expand Down Expand Up @@ -54,7 +55,7 @@ def mosaic_name(mosaic: str) -> tuple[str, str]:
return type_, res


def order_basemaps(mosaics: dict) -> list[dict[str, str]]:
def order_basemaps(mosaics: dict) -> List[Dict[str, str]]:
"""create a list of items for the dynamic selector"""

# get the basemap names
Expand Down Expand Up @@ -120,7 +121,6 @@ def download_quads(
total = len(quads)
alert.update_progress(0, cm.planet.down.progress, total=total)
for i, quad_id in enumerate(quads):

# update the progress in advance
alert.update_progress(i, total=total)

Expand Down

0 comments on commit 9d612c3

Please sign in to comment.