Skip to main content

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}.')

Metadata

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)

Source distribution for samplestamps 0.6.0
File Size Uploaded Provenance Actions
samplestamps-0.6.0.tar.gz 386.6 kB Without provenance Details for samplestamps-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for samplestamps 0.6.0
File Interpreter ABI Platform Actions
samplestamps-0.6.0-py3-none-any.whl Python 3 none any Details for samplestamps-0.6.0-py3-none-any.whl

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

Security for samplestamps 0.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page