Skip to content

Commit

Permalink
Fix bug whereby error raised when correct API of crop_by_extra_coord …
Browse files Browse the repository at this point in the history
…used. Now error is raised when WRONG API used instead.
  • Loading branch information
DanRyanIrish committed Dec 11, 2018
1 parent e25da89 commit 52d119d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ndcube/ndcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ def crop_by_extra_coord(self, coord_name, min_coord_value, max_coord_value):
result: `ndcube.NDCube`
"""
if isinstance(coord_name, str):
if not isinstance(coord_name, str):
raise TypeError("The API for this function has changed. "
"Please give coord_name, min_coord_value, max_coord_value")
extra_coord_dict = self.extra_coords[coord_name]
Expand Down

0 comments on commit 52d119d

Please sign in to comment.