-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ashton Doane
authored and
Ashton Doane
committed
Sep 12, 2024
1 parent
d0e6511
commit 3a6e501
Showing
3 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
from __future__ import annotations | ||
|
||
class StreamData: | ||
""" | ||
Store information about stream of data. | ||
""" | ||
def __init__(self, filename, sample_rate, pulses, data): | ||
""" | ||
Initialize object with associated properties. | ||
filename: str | ||
Path to the file with stream data | ||
sample_rate: int | ||
Sampling rate of the data | ||
pulses: np.array | ||
Numpy array representing the pulses. | ||
data: np.array | ||
NumPy array representing all streams of data. | ||
""" | ||
self.filename = filename | ||
self.sample_rate = sample_rate | ||
self.pulses = pulses | ||
self.data = data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters