Skip to content

Commit

Permalink
changed is not to != due to 3.8 warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
pl-ki committed Jun 14, 2023
1 parent 39f09ff commit 2bbacb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loompy/view_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __getitem__(self, slice_: Tuple[Union[slice, np.ndarray, int], Union[slice,
Returns:
A LoomView object, an in-memory representation of the sliced file
"""
if type(slice_) is not tuple or len(slice_) is not 2:
if type(slice_) is not tuple or len(slice_) != 2:
raise ValueError("Views require slices along two dimensions")

rows = slice_[0]
Expand Down

0 comments on commit 2bbacb5

Please sign in to comment.