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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

npc_session-0.1.40-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: npc_session-0.1.40.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.21.1.dev15+g57dca64 CPython/3.9.20 Linux/6.5.0-1025-azure

File hashes

Hashes for npc_session-0.1.40.tar.gz
Algorithm Hash digest
SHA256 6199827c598edcf7e7d9dbb372946f971a0b056c6afc9eee2372b85435206ea2
MD5 78afe02c34430cd96e4daf6dd5b1b4bd
BLAKE2b-256 c9109323cfedd4ab89f7ce15661292deeb5add7485a47a8385bd72012c8fd12d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: npc_session-0.1.40-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.21.1.dev15+g57dca64 CPython/3.9.20 Linux/6.5.0-1025-azure

File hashes

Hashes for npc_session-0.1.40-py3-none-any.whl
Algorithm Hash digest
SHA256 4f123a2feac68f2a5f6f5c586f7c397d042f31d97a21cfcf21e264598e439c58
MD5 2caf67090301f76042e1f5bc863594e2
BLAKE2b-256 1179750adc971f376ad6c7d3d1962259365fc70324e35fad137a720b9619254f

See more details on using hashes here.

Supported by

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