Skip to content

Commit

Permalink
wwf
Browse files Browse the repository at this point in the history
  • Loading branch information
calderjo committed May 23, 2024
1 parent e752725 commit 8d44ce4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
13 changes: 7 additions & 6 deletions tests/test_datashader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@

from common import p100_exempt

@p100_exempt
class TestDatashader(unittest.TestCase):
# based on https://github.com/pyviz/datashader/blob/master/datashader/tests/test_pipeline.py
import numpy as np
import pandas as pd
import datashader as ds
import datashader.transfer_functions as tf

@p100_exempt
def test_pipeline(self):
# based on https://github.com/pyviz/datashader/blob/master/datashader/tests/test_pipeline.py
import numpy as np
import pandas as pd
import datashader as ds
import datashader.transfer_functions as tf

df = pd.DataFrame({
'x': np.array(([0.] * 10 + [1] * 10)),
'y': np.array(([0.] * 5 + [1] * 5 + [0] * 5 + [1] * 5)),
Expand Down
9 changes: 5 additions & 4 deletions tests/test_geoviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@

from common import p100_exempt

@p100_exempt
class TestGeoviews(unittest.TestCase):
import geoviews.feature as gf
import holoviews as hv
from cartopy import crs

@p100_exempt
def test_viz(self):
import geoviews.feature as gf
import holoviews as hv
from cartopy import crs

hv.extension('matplotlib')
(gf.ocean + gf.land + gf.ocean * gf.land * gf.coastline * gf.borders).options(
'Feature', projection=crs.Geostationary(), global_extent=True
Expand Down

0 comments on commit 8d44ce4

Please sign in to comment.