data-exchange / dxchange

data exchange supporting tomopy
http://dxchange.readthedocs.io
Other
34 stars 42 forks source link

Deprecation in _read_ole_image function #95

Closed Asharits closed 3 years ago

Asharits commented 3 years ago

The np.fromstring() function at line 1155 in reader.py is causing the following error in a program I am writing:

DeprecationWarning: The binary mode of fromstring is deprecated, as it behaves surprisingly on unicode inputs. Use frombuffer instead!

I can suppress/ignore it but was wondering if this is something that should be updated? I modified the function with np.frombuffer and it seems to work the same.

decarlof commented 3 years ago

@Asharits updated here thanks