Skip to content

Allow for an injection frequency domain source model

Jacob Golomb requested to merge jacob.golomb/bilby_pipe:injection_fdsm into master

This MR should resolve Issue #283 (closed). If the user passes an injection-frequency-domain-source-model in the ini, it will use this FDSM to make the injected waveform.

This MR turns the logic that converts frequency-domain-source-model from a string to a function into a method in the Input class, which is called by the bilby_frequency_domain_source_model property. The create_data method of data_generation will check if an injection-frequency-domain-source-model has been passed as an argument and then grab the correct function. If it has not been specified, it will default to using the bilby-frequency-domain-source-model for the injection.

This may be neater written as a setter of this property, but this seemed sufficient for this purpose.

Merge request reports