Skip to content

Commit

Permalink
BUG: Fix bug in NumpyTensorSpace.available_dtypes
Browse files Browse the repository at this point in the history
closes #1291
  • Loading branch information
adler-j committed Feb 14, 2018
1 parent 30791a6 commit c57042a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odl/space/npy_tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ def available_dtypes():
all_dtypes.append(np.dtype(dtype))
# Need to add these manually since np.sctypes['others'] will only
# contain one of them (depending on Python version)
lst.extend([np.dtype('S'), np.dtype('U')])
all_dtypes.extend([np.dtype('S'), np.dtype('U')])
return tuple(sorted(set(all_dtypes)))

@staticmethod
Expand Down

0 comments on commit c57042a

Please sign in to comment.