Skip to content

Commit e91af4d

Browse files
authored
Update TestGeoviews (#1383)
looks like Geoviews now requires loading a backend plotting extension updated test to do this. tested locally cc: @jplotts
1 parent 170210f commit e91af4d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ RUN apt-get install -y libfreetype6-dev && \
270270
RUN pip install opencv-contrib-python opencv-python && \
271271
/tmp/clean-layer.sh
272272

273-
RUN pip install scipy \
273+
# Pin scipy until we update JAX b/335003097
274+
RUN pip install scipy==1.12.0 \
274275
# Scikit-learn accelerated library for x86
275276
scikit-learn-intelex>=2023.0.1 \
276277
# HDF5 support

tests/test_geoviews.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import unittest
22

33
import geoviews.feature as gf
4-
4+
import holoviews as hv
55
from cartopy import crs
66

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

0 commit comments

Comments
 (0)