Samplestamps
Code for converting between time stamps and samples/frames.
Installation
pip install samplestamps
Usage
from samplestamps import SampStamp
ss = SampStamp(sample_times=daq_stamps[:,0],
frame_times=cam_stamps[:,0],
sample_numbers=daq_samplenumber[:,0])
ledonset_sample = 80000.0+np.argmax(daq_samples[80000:,-1]>0.05)
print(f'led onset at sample {ledonset_sample} corresponding to')
print(f' seconds: {ss.sample_time(ledonset_sample):1.3f}')
print(f' frame: {ss.frame(ledonset_sample):1.0f}.')
Release files for samplestamps 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| samplestamps-0.6.0.tar.gz | 386.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| samplestamps-0.6.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 395.1 kB
Release files / samplestamps-0.6.0.tar.gz
| Download URL | samplestamps-0.6.0.tar.gz |
|---|---|
| Size | 386.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07a0cd42bddf9e06c27c79344e9c68d13014808fbaf8ac2e7aa9b7afb7337dc8
|
|
BLAKE2b-256 checksum How to use checksums |
4208f5fd941362aa7319a6923b2368c8da04dbc6d9d6a16d69a7f42931582ad6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|
Release files / samplestamps-0.6.0-py3-none-any.whl
| Download URL | samplestamps-0.6.0-py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9ab4e9c0d992b73b8bef955cddfda5fa6683244b96cf9f5b640f7d6411fd006
|
|
BLAKE2b-256 checksum How to use checksums |
796dab13810e7499d85bb51d75af55184143135dbaf0bf4ad55ca96f9280e677
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.27.1
|