Skip to content

TimeSeries comparison StateTimeSeries has strange name

When comparing one TimeSeries to another (or itself) the result is a StateTimeSeries with a strange name, probably using the str() representation of the second series:

>>> from gwpy.timeseries import TimeSeries
>>> a = TimeSeries([1, 2, 3, 4, 5])
>>> b = a == a
>>> b.name
'None == TimeSeries([ 1., 2., 3., 4., 5.]\n           unit: Unit(dimensionless),\n           sample_rate: 1.0 Hz,\n           epoch: 0.0,\n           name: None,\n           channel: None,\n           times: None)'