Allow for an injection frequency domain source model
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.