Skip to content
Snippets Groups Projects

Support for frequency domain injections

Merged Duncan Macleod requested to merge github/fork/alurban/fd-inject-dev into develop

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.

Merge request reports

Merged by Duncan MacleodDuncan Macleod 6 years ago (Apr 18, 2018 4:00pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading