Support for frequency domain injections
Created by: alurban
@duncanmmacleod This PR adds a method, Series.inject()
, which allows for both time and frequency domain injections. Its invocation replaces TimeSeries.inject()
(see pull request https://github.com/gwpy/gwpy/pull/720) by moving the inject()
method into the parent Series
class. In the frequency domain, the behavior is designed such that other.frequencies
must be a subset of self.frequencies
. In other words, signals that trail off past self.f0
or self.f0 + self.size*self.df
will raise a ValueError
. The method's behavior in the time domain remains unchanged.
This PR also adds a unit test and two example use cases, which would be added to the examples
directory.