File tree Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Expand file tree Collapse file tree 3 files changed +19
-17
lines changed Original file line number Diff line number Diff line change 55
66"""
77import pytest # isort:skip
8-
9- pytest .importorskip ("hypothesis" )
10-
118import hypothesis .extra .numpy as npst
129import hypothesis .strategies as st
1310from hypothesis import given
1411
1512import xarray as xr
1613
14+ pytest .importorskip ("hypothesis" ) # isort:skip
15+
16+
1717an_array = npst .arrays (
1818 dtype = st .one_of (
1919 npst .unsigned_integer_dtypes (), npst .integer_dtypes (), npst .floating_dtypes ()
Original file line number Diff line number Diff line change 1- try :
2- import dask
3- import dask .array
4- from dask .array .utils import meta_from_array
5- from dask .highlevelgraph import HighLevelGraph
6-
7- except ImportError :
8- pass
9-
101import collections
112import itertools
123import operator
3122from .dataarray import DataArray
3223from .dataset import Dataset
3324
25+ try :
26+ import dask
27+ import dask .array
28+ from dask .array .utils import meta_from_array
29+ from dask .highlevelgraph import HighLevelGraph
30+
31+ except ImportError :
32+ pass
33+
34+
3435T_DSorDA = TypeVar ("T_DSorDA" , DataArray , Dataset )
3536
3637
Original file line number Diff line number Diff line change 55import pandas as pd
66import pytest
77
8- try :
9- import matplotlib .pyplot as plt
10- except ImportError :
11- pass
12-
138import xarray as xr
149from xarray .core import dtypes , duck_array_ops
1510
2318from .test_plot import PlotTestCase
2419from .test_variable import _PAD_XR_NP_ARGS
2520
21+ try :
22+ import matplotlib .pyplot as plt
23+ except ImportError :
24+ pass
25+
26+
2627pint = pytest .importorskip ("pint" )
2728DimensionalityError = pint .errors .DimensionalityError
2829
You can’t perform that action at this time.
0 commit comments