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

Add SampleSeries class #61

Open
mhostetter opened this issue Aug 4, 2023 · 1 comment
Open

Add SampleSeries class #61

mhostetter opened this issue Aug 4, 2023 · 1 comment

Comments

@mhostetter
Copy link
Owner

mhostetter commented Aug 4, 2023

This is a np.ndarray subclass that stores the sample rate (default 1) and sample offset (default 0) of a sample series. When slices are performed, the sample offset is updated. When rate changes happen, the sample rate is updated.

We can also add a time slice feature. Maybe if the slice values are floats x[1e-3 : 5e-3] they are interpreted as time in seconds. Or maybe x(1e-3 : 5e-3).

@mhostetter
Copy link
Owner Author

Maybe name this TimeSeries?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant