Skip to content

Commit 04789cb

Browse files
authored
Merge pull request #220 from LaurentBlanc73/master
Fixed byte order handling when returning dataframe
2 parents 259feec + 6e02b12 commit 04789cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mdfreader/mdfreader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ def return_pandas_dataframe(self, master_channel_name):
15331533
for key in channel_dict.keys():
15341534
data = self.get_channel_data(key)
15351535
if data.dtype.byteorder not in ['=', '|']:
1536-
data = data.byteswap().newbyteorder()
1536+
data = data.byteswap().view(data.dtype.newbyteorder())
15371537
if data.ndim == 1 and data.shape[0] == temporary_dataframe.shape[0] \
15381538
and not data.dtype.char == 'V':
15391539
channel_dict[key] = data

0 commit comments

Comments
 (0)