-
Notifications
You must be signed in to change notification settings - Fork 20
new time driving function handling #126
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
Conversation
Very nice! I don't see a problem with the different variants of You could move I didn't make a detailed review yet, most of the things from #125 apply here, too. |
sfs/time/nfchoa.py
Outdated
Second-order section filters :func:`scipy.signal.sosfilt`. | ||
phaseshift : (N,) numpy.ndarray | ||
Phase shift in radians. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add selection
and secondary_source
.
sfs/time/nfchoa.py
Outdated
Second-order section filters :func:`scipy.signal.sosfilt`. | ||
phaseshift : (N,) numpy.ndarray | ||
Phase shift in radians. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add selection
and secondary_source
sfs/time/nfchoa.py
Outdated
Second-order section filters :func:`scipy.signal.sosfilt`. | ||
phaseshift : (N,) numpy.ndarray | ||
Phase shift in radians. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add selection
and secondary_source
sfs/time/wfs.py
Outdated
import numpy as np | ||
from numpy.core.umath_tests import inner1d # element-wise inner product | ||
from scipy.signal import besselap, sosfilt, zpk2sos | ||
from scipy.special import eval_legendre as legendre |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions are not used here.
sfs/time/wfs.py
Outdated
""" | ||
import numpy as np | ||
from numpy.core.umath_tests import inner1d # element-wise inner product | ||
from scipy.signal import besselap, sosfilt, zpk2sos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used here.
sfs/time/wfs.py
Outdated
return util.DelayedSignal(out, samplerate, offset_samples / samplerate) | ||
|
||
|
||
def secondary_source_point(c): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In nfchoa
, this function comes at the top of the script.
Maybe we can move it for a more uniform look?
@narahahn Those other comments seem outdated anyway, right? |
Same idea as of #125
Additionally compared to frequency domain, here the handling of
def driving_signals
anddef apply_delays
should be handled more elegant. I'm currently testing some ideas.