Error passing mode_array in injection-waveform-arguments
When doing injections, passing a mode_array
for the injected waveform via injection-waveform-arguments
does not currently work. To reproduce the error one can add e.g.
injection-waveform-arguments={'mode_array':[[2,2],[2,-2]]}
to the example bbh_injection.ini.
Traceback:
Traceback (most recent call last):
File "/local/condor/execute/dir_2310046/bilby_pipe_generation", line 10, in <module>
sys.exit(main())
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby_pipe/data_generation.py", line 1200, in main
data = DataGenerationInput(args, unknown_args)
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby_pipe/data_generation.py", line 209, in __init__
self.create_data(args)
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby_pipe/data_generation.py", line 242, in create_data
self._set_interferometers_from_injection_in_gaussian_noise()
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby_pipe/data_generation.py", line 388, in _set_interferometers_from_injection_in_gaussian_noise
self.interferometers.inject_signal(
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby/gw/detector/networks.py", line 166, in inject_signal
injection_polarizations = waveform_generator.frequency_domain_strain(
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby/gw/waveform_generator.py", line 131, in frequency_domain_strain
return self._calculate_strain(model=self.frequency_domain_source_model,
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby/gw/waveform_generator.py", line 176, in _calculate_strain
model_strain = self._strain_from_model(model_data_points, model)
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby/gw/waveform_generator.py", line 189, in _strain_from_model
return model(model_data_points, **self.parameters)
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby/gw/source.py", line 325, in lal_binary_black_hole
return _base_lal_cbc_fd_waveform(
File "/cvmfs/software.igwn.org/conda/envs/igwn-py310-20240116/lib/python3.10/site-packages/bilby/gw/source.py", line 596, in _base_lal_cbc_fd_waveform
lalsim.SimInspiralModeArrayActivateMode(mode_array_lal, mode[0], mode[1])
TypeError: in method 'SimInspiralModeArrayActivateMode', argument 2 of type 'unsigned int'