File tree 3 files changed +18
-16
lines changed
3 files changed +18
-16
lines changed Original file line number Diff line number Diff line change 6
6
"""
7
7
import pytest # isort:skip
8
8
9
- pytest .importorskip ("hypothesis" )
10
-
9
+ pytest .importorskip ("hypothesis" ) # isort:split
11
10
import hypothesis .extra .numpy as npst
12
11
import hypothesis .strategies as st
13
12
from hypothesis import given
14
13
15
14
import xarray as xr
16
15
16
+
17
17
an_array = npst .arrays (
18
18
dtype = st .one_of (
19
19
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
-
10
1
import collections
11
2
import itertools
12
3
import operator
31
22
from .dataarray import DataArray
32
23
from .dataset import Dataset
33
24
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
+
34
35
T_DSorDA = TypeVar ("T_DSorDA" , DataArray , Dataset )
35
36
36
37
Original file line number Diff line number Diff line change 5
5
import pandas as pd
6
6
import pytest
7
7
8
- try :
9
- import matplotlib .pyplot as plt
10
- except ImportError :
11
- pass
12
-
13
8
import xarray as xr
14
9
from xarray .core import dtypes , duck_array_ops
15
10
23
18
from .test_plot import PlotTestCase
24
19
from .test_variable import _PAD_XR_NP_ARGS
25
20
21
+ try :
22
+ import matplotlib .pyplot as plt
23
+ except ImportError :
24
+ pass
25
+
26
+
26
27
pint = pytest .importorskip ("pint" )
27
28
DimensionalityError = pint .errors .DimensionalityError
28
29
You can’t perform that action at this time.
0 commit comments