hdf5 output cannot handle bizarro linestyle specifications
Running unit tests using, for example,
python3 -m gwinc.test -gh
will fail if some Noises have certain options specified in their plot styles. It looks like a problem with saving the hdf5 file when generating the cache. In the specific example that I ran into, specifying linestyle=(1, (4, 1,))
gives errors like
TypeError: Object dtype dtype('O') has no native HDF5 equivalent
but linestyle='--'
is parsed fine. I don't think this is a major issue since you can just not use certain plot styles, but it's something to keep in mind that things like plot styles can break the tests.
The following branch is an example that will break the unit tests in this way
https://git.ligo.org/kevin.kuns/pygwinc/-/tree/unit-tests
The tests will pass if all of the linestyles in ifo/noises.py are changed.