Skip to content

LALFrame handling of empty arrays.

Created by: pchanial

In case no frames match a time segment, it would be handy if reading by LALframe of a gwf file could return an empty ndarray instead of None for the data.data attribute of the LAL timeseries.

Here is a first attempt to do so. Currently the writing of an empty LAL series fails when it is added (add_ cython or c function) to the frame in gwpy.timeseries.io.gwf.lalframe.write:

        # add time series to frame
        add_(frame, lalseries)

So I've marked the test as xfailed, I would need more pointers to fix it (where is the relevant code ?)

Merge request reports