Skip to content

Commit

Permalink
Add missing index.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRyanIrish committed Mar 28, 2018
1 parent 1fef1d1 commit 29fd70e
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 @@ -215,7 +215,7 @@ def world_axis_physical_types(self):
for i, axis in enumerate(self.missing_axis):
if not axis:
# Find keys in wcs_ivoa_mapping dict that represent start of CTYPE.
keys = list(filter(lambda key: ctype.startswith(key), wcs_ivoa_mapping))
keys = list(filter(lambda key: ctype[i].startswith(key), wcs_ivoa_mapping))
# If there are multiple valid keys, raise an error.
if len(keys) != 1:
raise ValueError("Non-unique CTYPE key. Please raise an issue at "
Expand Down

0 comments on commit 29fd70e

Please sign in to comment.