Modify inject signal
This restructures some functionality surrounding the inject_signal
method.
- Added
inject_signal_from_waveform_generator
andinject_signal_from_waveform_polarizations
that are slightly less confusing to use thaninject_signal
. - Removed
if/else
statement that checks size of the injected signal. The injection will now just fail if that condition is now not fulfilled. It was already breaking before, but at a different place. - Added explicit tests for these methods.
Merge request reports
Activity
added Refactoring Testing labels
Since this is being reworked, I think it would be worth specifying in some way that this is a frequency domain injection. Maybe as a keyword argument for the inject method. It would be nice to directly support time domain injections in the future. @gregory.ashton has code for that in bilby pipe.
added 1 commit
- 881fd28f - Made reference injection test only relevant for python3
added 1 commit
- 962170b7 - Made reference injection test only relevant for python3
@colm.talbot I think this can always be implemented later on by adding a new keyword argument. I don't see a need to add this keyword argument yet.
- Automatically resolved by Moritz Huebner
changed milestone to %0.5.1
added 5 commits
-
eb18010a...67914930 - 4 commits from branch
master
- dc8890b4 - Merge remote-tracking branch 'origin/master' into modify_inject_signal
-
eb18010a...67914930 - 4 commits from branch
mentioned in commit a0d16709