hightower8083 / synchrad

Synchrotron Radiation calculator via openCL
GNU General Public License v3.0
18 stars 11 forks source link

Fixed small bug with h5py >=3.0 #21

Closed pots007 closed 2 years ago

pots007 commented 2 years ago

With h5py version >=3.0, the strings saved as datasets are read in as bytes objects. This meant the Args dict contained some bytes objects, which broke the analysis tools. This small fix checks for bytes objects and decodes them as the data is read in from saved files.

hightower8083 commented 2 years ago

Hello @pots007

Thank you for the fix and for your interest in the code. Let me know if you'll have any questions on using the software.