Skip to content

Commit

Permalink
Update TestGeoviews (#1383)
Browse files Browse the repository at this point in the history
looks like Geoviews now requires loading a backend plotting extension

updated test to do this.

tested locally

cc: @jplotts
  • Loading branch information
calderjo authored Apr 16, 2024
1 parent 170210f commit e91af4d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ RUN apt-get install -y libfreetype6-dev && \
RUN pip install opencv-contrib-python opencv-python && \
/tmp/clean-layer.sh

RUN pip install scipy \
# Pin scipy until we update JAX b/335003097
RUN pip install scipy==1.12.0 \
# Scikit-learn accelerated library for x86
scikit-learn-intelex>=2023.0.1 \
# HDF5 support
Expand Down
3 changes: 2 additions & 1 deletion tests/test_geoviews.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import unittest

import geoviews.feature as gf

import holoviews as hv
from cartopy import crs

class TestGeoviews(unittest.TestCase):
def test_viz(self):
hv.extension('matplotlib')
(gf.ocean + gf.land + gf.ocean * gf.land * gf.coastline * gf.borders).options(
'Feature', projection=crs.Geostationary(), global_extent=True
).cols(3)

0 comments on commit e91af4d

Please sign in to comment.