Skip to content

Commit 4b8e91e

Browse files
committed
Return numpy dtype from eiger-stream-v1
All of the other imageseries adapters return a numpy dtype. Here, we were just returning a string representing a dtype. However, we should return a numpy dtype to be consistent with all of the other imageseries adapters as well. This also fixes issues in other places in the code where it is assumed that a numpy dtype is returned from the imageseries. Fixes: hexrd/hexrdgui##1780 Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
1 parent 759a303 commit 4b8e91e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hexrd/imageseries/load/eiger_stream_v1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def _first_data_entry(self):
116116

117117
@property
118118
def dtype(self):
119-
return self._first_data_entry['dtype'][()]
119+
return np.dtype(self._first_data_entry['dtype'][()])
120120

121121
@property
122122
def shape(self):

0 commit comments

Comments
 (0)