Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH: signal: Allow upsweeps of frequency in the 'hyperbolic' chirp. #3293

Merged
merged 1 commit into from
Feb 23, 2014

Conversation

WarrenWeckesser
Copy link
Member

The restriction that f0 > f1 > 0 has been removed. The only requirement
is that f0 and f1 are not zero. Negative frequencies can be given.
(Even f0 and f1 with opposite signs are allowed, but this is not expected
to be a useful case.) The degenerate case with f0 == f1 is now also
handled.

Two small changes not directly related to the above change:

  • Changed "geometric" to "logarithmic" in the argument of the ValueError
    that can be raised when method="logarithmic".
  • Added t = asarray(t) in the function _chirp_phase, so the 't' argument
    of chirp is now array_like.

Closes gh-3285.

The restriction that f0 > f1 > 0 has been removed.  The only requirement
is that f0 and f1 are not zero.  Negative frequencies can be given.
(Even f0 and f1 with opposite signs are allowed, but this is not expected
to be a useful case.)  The degenerate case with f0 == f1 is now also
handled.

Two small changes not directly related to the above change:
* Changed "geometric" to "logarithmic" in the argument of the ValueError
  that can be raised when method="logaithmic".
* Added `t = asarray(t)` in the function _chirp_phase, so the 't' argument
  of `chirp` is now `array_like`.

Closes scipygh-3285.
@WarrenWeckesser WarrenWeckesser added this to the 0.14.0 milestone Feb 6, 2014
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 889f451 on WarrenWeckesser:signal-chirp-hyp into * on scipy:master*.

@pv pv added the PR label Feb 19, 2014
rgommers added a commit that referenced this pull request Feb 23, 2014
ENH: signal: Allow upsweeps of frequency in the 'hyperbolic' chirp.
@rgommers rgommers merged commit 23df548 into scipy:master Feb 23, 2014
@rgommers
Copy link
Member

Looks OK to me, merging.

@WarrenWeckesser WarrenWeckesser deleted the signal-chirp-hyp branch March 2, 2014 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

signal.chirp(method='hyp') disallows hyperbolic upsweep
5 participants