npc_mvr
Tools for reading raw video data from MindScope Neuropixels experiments, compatible with data in the cloud.
Usage
conda create -n npc_mvr python>=3.9
conda activate npc_mvr
pip install npc_mvr
Python
>>> import npc_mvr
>>> d = npc_mvr.MVRDataset('s3://aind-ephys-data/ecephys_670248_2023-08-03_12-04-15/behavior')
# get paths
>>> d.video_paths['behavior']
S3Path('s3://aind-ephys-data/ecephys_670248_2023-08-03_12-04-15/behavior/Behavior_20230803T120430.mp4')
>>> d.info_paths['behavior']
S3Path('s3://aind-ephys-data/ecephys_670248_2023-08-03_12-04-15/behavior/Behavior_20230803T120430.json')
# get data
>>> type(d.video_data['behavior'])
<class 'cv2.VideoCapture'>
>>> type(d.info_data['behavior'])
<class 'dict'>
>>> type(d.sync_data)
<class 'npc_sync.sync.SyncDataset'>
# get frame times for each camera on sync clock
# - nans correspond to frames not recorded on sync
# - first nan is metadata frame
>>> d.frame_times['behavior']
array([ nan, 14.08409, 14.10075, ..., 5084.4582 , 5084.47487, 5084.49153])
>>> d.validate()
Development
See instructions in https://github.com/AllenInstitute/npc_mvr/CONTRIBUTING.md and the original template: https://github.com/AllenInstitute/copier-pdm-npc/blob/main/README.md
Metadata
Release files for npc-mvr 0.1.19
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| npc_mvr-0.1.19.tar.gz | 18.7 kB | Without provenance | Details for npc_mvr-0.1.19.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| npc_mvr-0.1.19-py3-none-any.whl | Python 3 | none | any | Details for npc_mvr-0.1.19-py3-none-any.whl |
Total release size: 35.5 kB
Release files / npc_mvr-0.1.19.tar.gz
| Download URL | npc_mvr-0.1.19.tar.gz |
|---|---|
| Size | 18.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f17333ba4e8f566a02b9147b0a26cf3f05f5ae23648b1ef0b39c1a8c7ac04601
|
|
BLAKE2b-256 checksum How to use checksums |
4ab31e154a73c8e5e530ddabd8580e0a3bb2f31e4e9121b7d83c9576f6be2a63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / npc_mvr-0.1.19-py3-none-any.whl
| Download URL | npc_mvr-0.1.19-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a02b94de8cf3524186e04062a86d26a370cbc8e43b080d87de146e24405b7ac
|
|
BLAKE2b-256 checksum How to use checksums |
9dffd6628fc2b67e5dded4c7076e326777a9c3ad451499fefcdfec1bf81bbdb9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for npc-mvr 0.1.19
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.