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
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.41.tar.gz
(12.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file npc_session-0.1.41.tar.gz.
File metadata
- Download URL: npc_session-0.1.41.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
pdm/2.26.7.dev2+gb99d29f4 CPython/3.9.25 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5079064a6af24569ee7cf193798b97f60f2b0d7c7f0c57c396d765a61bffe67
|
|
| MD5 |
5058740c62f15470d80e18b30ac20f49
|
|
| BLAKE2b-256 |
1ae377022d4951ed4ac8dc3eac147843fb864f9b07e32340d383a7ba1ad8abcd
|
File details
Details for the file npc_session-0.1.41-py3-none-any.whl.
File metadata
- Download URL: npc_session-0.1.41-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
pdm/2.26.7.dev2+gb99d29f4 CPython/3.9.25 Linux/6.11.0-1018-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5bd0891b4a86dcef79bc2f777c2255a6f10364079b93667ca58ce36e8ac7f27
|
|
| MD5 |
cd42253ea2642e79ba5eb71e81829ac6
|
|
| BLAKE2b-256 |
aab834590c9bea28d2edfa20728d06706eb985ae193dd3be0052f782961062a3
|