Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
mrocklin committed Apr 7, 2017
1 parent c6e520d commit 6f67acf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dask/array/tests/test_array_sparse.py
Expand Up @@ -15,8 +15,8 @@ def test_basic(sparse_type):
a = dask.delayed(sparse_type)(a)
a, b, c = a * 1, a * 2, a * 3

x = da.concatenate([da.from_delayed(x, shape=(5, 5), dtype=float)
for x in [a, b, c]])
x = da.concatenate([da.from_delayed(xx, shape=(5, 5), dtype=float)
for xx in [a, b, c]])

y = da.expm1(x * 10)
y = (y + y).astype('float32')
Expand All @@ -29,8 +29,8 @@ def test_basic(sparse_type):

a = dask.delayed(np.eye)(5)
a, b, c = a * 1, a * 2, a * 3
x = da.concatenate([da.from_delayed(x, shape=(5, 5), dtype=float)
for x in [a, b, c]])
x = da.concatenate([da.from_delayed(xx, shape=(5, 5), dtype=float)
for xx in [a, b, c]])

y = da.expm1(x * 10)
y = (y + y).astype('float32')
Expand All @@ -44,8 +44,8 @@ def test_slicing(sparse_type):
a = dask.delayed(sparse_type)(a)
a, b, c = a * 1, a * 2, a * 3

x = da.concatenate([da.from_delayed(x, shape=(5, 5), dtype=float)
for x in [a, b, c]])
x = da.concatenate([da.from_delayed(xx, shape=(5, 5), dtype=float)
for xx in [a, b, c]])

y = x[1:-2:2].persist()
assert all(isinstance(v, sparse.spmatrix) for v in y.dask.values())
Expand Down

0 comments on commit 6f67acf

Please sign in to comment.