RuntimeError in bilby_pipe data generation when resampling method is unspecified
I was running bilby_pipe on a .gwf file containing a GWpy TimeSeries. When bilby reached the resampling it defaulted to lal
and produced the following error:
17:03 bilby_pipe INFO : Resampling data to sampling_frequency 4096.0 using lal
XLAL Error - XLALResampleREAL8TimeSeries (ResampleTimeSeries.c:188): Invalid argument
Traceback (most recent call last):
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py37/bin/bilby_pipe_generation", line 10, in <module>
sys.exit(main())
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py37-20200717/lib/python3.7/site-packages/bilby_pipe/data_generation.py", line 1175, in main
data = DataGenerationInput(args, unknown_args)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py37-20200717/lib/python3.7/site-packages/bilby_pipe/data_generation.py", line 185, in __init__
self.create_data(args)
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py37-20200717/lib/python3.7/site-packages/bilby_pipe/data_generation.py", line 225, in create_data
self._set_interferometers_from_data()
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py37-20200717/lib/python3.7/site-packages/bilby_pipe/data_generation.py", line 630, in _set_interferometers_from_data
det, self.get_channel_type(det), self.start_time, end_time
File "/cvmfs/oasis.opensciencegrid.org/ligo/sw/conda/envs/igwn-py37-20200717/lib/python3.7/site-packages/bilby_pipe/data_generation.py", line 803, in _get_data
lal_timeseries, float(1 / self.sampling_frequency)
RuntimeError: Invalid argument
I assume this is because XLALResampleREAL8TimeSeries
couldn't recognise the GWpy timeseries. I think it would make sense if bilby were able to recognise the type of timeseries it is trying to convert and then to select its resampling method autonomously. Alternatively, could this error message recommend changing the resampling method in the config file?