Basic tools for parsing subject, session, date and time associated with data from the Mindscope Neuropixels team, in the cloud.
Project description
npc_session
neuropixels cloud session
Basic tools for parsing subject, session, date and time associated with data from the Mindscope Neuropixels team, in the cloud.
quickstart
pip install npc_session
Parse a normalized ID from a path or string:
>>> from npc_session import SessionRecord;
>>> s = SessionRecord('//allen/programs/mindscope/workgroups/templeton/TTOC/2022-07-26_14-09-36_366122')
>>> s
'366122_2022-07-26'
>>> s.idx
0
>>> s.subject
366122
>>> s.date
'2022-07-26'
>>> s.date.dt
datetime.date(2022, 7, 26)
>>> s.date.year
2022
>>> s_1 = SessionRecord('//allen/programs/mindscope/workgroups/templeton/TTOC/2022-07-26_14-09-36_366122_1')
>>> s_1.idx
1
>>> s_2 = s_1.with_idx(2)
>>> s_2.idx
2
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
npc_session-0.1.34.tar.gz
(11.3 kB
view hashes)
Built Distribution
Close
Hashes for npc_session-0.1.34-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50e1d8fe449473798e894a384452aa7d3dae5bc48f40579f5dce12c7b6f31a58 |
|
MD5 | 6896d4d4662ab58892d41844fa752c70 |
|
BLAKE2b-256 | c363d5c5686fa9f2295442bde0722c5e02651e6c51426e3cfb5b1704687bf1d7 |