Skip to main content

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.

PyPI Python version

Coverage CI/CD GitHub issues

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


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.39.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

npc_session-0.1.39-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file npc_session-0.1.39.tar.gz.

File metadata

  • Download URL: npc_session-0.1.39.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.18.1 CPython/3.9.19 Linux/6.5.0-1025-azure

File hashes

Hashes for npc_session-0.1.39.tar.gz
Algorithm Hash digest
SHA256 b32243cb6beb58802bae63208937bca6795726c483bef3354465c06f2ee11526
MD5 4f6d982f0ee574e1b474c4e9a1b76d19
BLAKE2b-256 601d8af1a00ce0ea68672f6d9c51a85ec5942a757705acfb1fc48d0437ab5ce4

See more details on using hashes here.

File details

Details for the file npc_session-0.1.39-py3-none-any.whl.

File metadata

  • Download URL: npc_session-0.1.39-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.18.1 CPython/3.9.19 Linux/6.5.0-1025-azure

File hashes

Hashes for npc_session-0.1.39-py3-none-any.whl
Algorithm Hash digest
SHA256 b369ff7c71d9c2119fb18a4aa0f2a8bbab01c7a73ec3e67a0a0f94e594e5cbc3
MD5 24ee189e21123cfeb6d227765640b40a
BLAKE2b-256 d1e7db5221327544f7c86e2be7ce1c8e9e5cb653a3fff6ad396a3ac35ad65542

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page