Skip to content

More python3 compatibility fixes

Patrick Godwin requested to merge python3_compat into master

A few (and hopefully final) changes for python 3 and/or compatibility with newer libraries.

  • cast s['data'].values() to a list before calling len()
  • cast result from zip() to a list before making a numpy array out of it
  • h5py attributes aren't keen to passing in python strings anymore, they look like need to be wrapped in numpy.string_ or an S dtype.
  • config.get('general', 'instrument', '') was causing issues, so I changed it to check explicitly with config.has_option()
  • change glue.ligolw to ligo.lw since glue's version has basically dropped support

Merge request reports