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
Metadata
Release files for npc_session 0.1.41
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| npc_session-0.1.41.tar.gz | 12.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| npc_session-0.1.41-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 24.0 kB
Release files / npc_session-0.1.41.tar.gz
| Download URL | npc_session-0.1.41.tar.gz |
|---|---|
| Size | 12.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5079064a6af24569ee7cf193798b97f60f2b0d7c7f0c57c396d765a61bffe67
|
|
BLAKE2b-256 checksum How to use checksums |
1ae377022d4951ed4ac8dc3eac147843fb864f9b07e32340d383a7ba1ad8abcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.26.7.dev2+gb99d29f4 CPython/3.9.25 Linux/6.11.0-1018-azure
|
Release files / npc_session-0.1.41-py3-none-any.whl
| Download URL | npc_session-0.1.41-py3-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c5bd0891b4a86dcef79bc2f777c2255a6f10364079b93667ca58ce36e8ac7f27
|
|
BLAKE2b-256 checksum How to use checksums |
aab834590c9bea28d2edfa20728d06706eb985ae193dd3be0052f782961062a3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.26.7.dev2+gb99d29f4 CPython/3.9.25 Linux/6.11.0-1018-azure
|