Skip to content

Commit

Permalink
Fixed list comprehension loop variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Dec 21, 2015
1 parent 4ae929a commit 378a833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions holoviews/core/data.py
Expand Up @@ -1019,8 +1019,8 @@ def groupby(cls, columns, dimensions, container_type, group_type, **kwargs):
# to apply the group selection
grouped_data = []
for group in unique_indices:
mask = np.logical_and.reduce([data[:, idx] == group[i]
for i, idx in enumerate(dim_idxs)])
mask = np.logical_and.reduce([data[:, d_idx] == group[i]
for i, d_idx in enumerate(dim_idxs)])
group_data = data[mask, ndims:]
if not group_type == 'raw':
if issubclass(group_type, dict):
Expand Down
2 changes: 1 addition & 1 deletion holoviews/element/raster.py
Expand Up @@ -588,7 +588,7 @@ def range(self, dim, data_range=True):
data = np.atleast_3d(self.data)[:, :, dim_idx]
drange = (np.nanmin(data), np.nanmax(data))
if data_range:
soft_range = [r for r in dim.soft_range if r is not None]
soft_range = [sr for sr in dim.soft_range if sr is not None]
if soft_range:
return util.max_range([drange, soft_range])
else:
Expand Down

0 comments on commit 378a833

Please sign in to comment.