From 3b6eaca7311a244042877d1ed992f2b3841486f1 Mon Sep 17 00:00:00 2001 From: Chris B Date: Wed, 1 Aug 2018 10:02:16 +0100 Subject: [PATCH] Address review comments re. whitespace. --- holoviews/core/data/grid.py | 2 +- holoviews/core/data/image.py | 2 +- holoviews/core/data/iris.py | 2 +- holoviews/core/data/xarray.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/holoviews/core/data/grid.py b/holoviews/core/data/grid.py index 296c1ab7d2..7febc9a9a4 100644 --- a/holoviews/core/data/grid.py +++ b/holoviews/core/data/grid.py @@ -180,7 +180,7 @@ def shape(cls, dataset, gridded=False): if gridded: return shape else: - return (np.product(shape,dtype=np.intp), len(dataset.dimensions())) + return (np.product(shape, dtype=np.intp), len(dataset.dimensions())) @classmethod diff --git a/holoviews/core/data/image.py b/holoviews/core/data/image.py index e948f6c3c7..34e916c7ef 100644 --- a/holoviews/core/data/image.py +++ b/holoviews/core/data/image.py @@ -79,7 +79,7 @@ def shape(cls, dataset, gridded=False): @classmethod def length(cls, dataset): - return np.product(dataset.data.shape[:2],dtype=np.intp) + return np.product(dataset.data.shape[:2], dtype=np.intp) @classmethod diff --git a/holoviews/core/data/iris.py b/holoviews/core/data/iris.py index 48168ec720..48617428c7 100644 --- a/holoviews/core/data/iris.py +++ b/holoviews/core/data/iris.py @@ -280,7 +280,7 @@ def length(cls, dataset): """ Returns the total number of samples in the dataset. """ - return np.product([len(d.points) for d in dataset.data.coords(dim_coords=True)],dtype=np.intp) + return np.product([len(d.points) for d in dataset.data.coords(dim_coords=True)], dtype=np.intp) @classmethod diff --git a/holoviews/core/data/xarray.py b/holoviews/core/data/xarray.py index 7d26dc2888..4f3bea3ca1 100644 --- a/holoviews/core/data/xarray.py +++ b/holoviews/core/data/xarray.py @@ -50,7 +50,7 @@ def shape(cls, dataset, gridded=False): if gridded: return shape else: - return (np.product(shape,dtype=np.intp), len(dataset.dimensions())) + return (np.product(shape, dtype=np.intp), len(dataset.dimensions())) @classmethod @@ -443,7 +443,7 @@ def select(cls, dataset, selection_mask=None, **selection): @classmethod def length(cls, dataset): - return np.product([len(dataset.data[d.name]) for d in dataset.kdims],dtype=np.intp) + return np.product([len(dataset.data[d.name]) for d in dataset.kdims], dtype=np.intp) @classmethod def dframe(cls, dataset, dimensions):