Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print env in testing workflow #254

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ jobs:
with:
environment-file: ${{ matrix.env }}

- name: Print env
run: |
python -V
python -c "import geopandas; geopandas.show_versions();"
micromamba info
micromamba list
python -m pip list

- name: Test
env:
ER_USERNAME: ${{ secrets.ER_USERNAME }}
Expand Down
14 changes: 13 additions & 1 deletion ecoscope/mapping/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import numpy as np
import pandas as pd
from io import BytesIO
from typing import Dict, List, Union
from typing import Dict, IO, List, Optional, TextIO, Union
from pathlib import Path

try:
import matplotlib as mpl
Expand Down Expand Up @@ -510,6 +511,17 @@ def get_named_tile_layer(layer: str) -> BitmapTileLayer:
max_requests=layer.get("max_requests", None),
)

def to_html(
self,
filename: Union[str, Path, TextIO, IO[str], None] = None,
title: Optional[str] = None,
maximize: bool = True,
) -> Union[None, str]:
if maximize:
self.height = "100%"
self.width = "100%"
return super().to_html(filename=filename, title=title)

@staticmethod
def hex_to_rgb(hex: str) -> list:
hex = hex.strip("#")
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ dependencies:
- git
- jupyterlab
- geopandas<=0.14.2
- numpy<2
- ipywidgets
- pip:
- kaleido
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies = [
"earthengine-api",
"earthranger-client",
"geopandas<=0.14.2",
"numpy<2",
"pyproj",
"rasterio",
"tqdm",
Expand Down Expand Up @@ -54,7 +55,7 @@ async_earthranger = [
"earthranger-client @ git+https://github.com/PADAS/[email protected]",
]
mapping = [
"lonboard @ git+https://github.com/wildlife-dynamics/lonboard@77c56d30a9c2dd96fd863e910bf62952cfa36da8",
"lonboard @ git+https://github.com/wildlife-dynamics/lonboard@a8adb48ec43fff795506db5a9e7e0103f877d65c",
"matplotlib",
"mapclassify",
]
Expand Down
Loading