prjemian / punx

Python Utilities for NeXus HDF5 files
https://prjemian.github.io/punx
5 stars 7 forks source link

convert byte strings to strings #109

Closed prjemian closed 6 years ago

prjemian commented 6 years ago

In python 3.6 output from tree, the strings are wrapped with b'string' indicating they are byte strings. Strip this off properly.

prjemian commented 6 years ago

The code in utils.decode_byte_string() will do this properly, also handling if the value is a numpy.ndarray instead.