-
Notifications
You must be signed in to change notification settings - Fork 25
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
Implemented SignalBase API and changed nframes and nchannels to Signa… #61
Conversation
…lBase.nframes and SignalBase.nchannels
Codecov Report
@@ Coverage Diff @@
## master #61 +/- ##
==========================================
+ Coverage 71.12% 72.58% +1.46%
==========================================
Files 6 6
Lines 374 383 +9
==========================================
+ Hits 266 278 +12
+ Misses 108 105 -3
Continue to review full report at Codecov.
|
I think we should re-export |
@haberdashPI do you think we should add a |
Agree on both suggestions. I didn't deprecate |
Yeah, I think for now we export both, with |
Will make the change shortly. |
At the moment SignalBase includes just read-only functions. That's possibly a reason to leave out In SignalOperators, things work a little bit differently. You use Resample and ToFramerate to change the framerate: These do not include a |
I don't have a strong opinion on it one way or the other. I've currently left |
Sorry for the delay on this - I haven't forgotten about it! I'm 2 weeks from my PhD defense so should have a little more time to start looking at this again after that. |
No worries. No rush. Good luck with your defense!!! |
I'm guessing this is no longer of any interest. Closing. |
As discussed in #56, I've implemented the
SignalBase
API forAbstractSampleBuf
.This replaces
nframes
andnchannels
fromSampledSignals
with the ones fromSignalBase
, and re-exports them. TheSampledSignals.samplerate
andSampledSignals.samplerate!
APIs are left alone for backward compatibility. Other APIs (SignalBase.framerate
andSignalBase.sampletype
) are also implemented, but not re-exported, since they were not defined inSampledSignals
to begin with.All tests pass.