Skip to main content

User-friendly tools for accessing paths, metadata and assets related to AIND sessions.

Project description

aind-session

User-friendly tools for accessing paths, metadata and assets related to AIND sessions.

PyPI Python version

Coverage CI/CD GitHub issues

Usage

conda create -n aind_session python>=3.9
conda activate aind_session
pip install aind_session

Python

>>> from aind_session import Session

# Common attributes available for all sessions:
>>> session = Session('ecephys_676909_2023-12-13_13-43-40')
>>> session.platform
'ecephys'
>>> session.subject_id
'676909'
>>> session.dt
datetime.datetime(2023, 12, 13, 13, 43, 40)
>>> session.raw_data_asset.id
'16d46411-540a-4122-b47f-8cb2a15d593a'
>>> session.raw_data_folder.as_posix()
's3://aind-ephys-data/ecephys_676909_2023-12-13_13-43-40'

# Additional functionality in namespace extensions:
>>> session.metadata.subject['genotype']
'Pvalb-IRES-Cre/wt;Ai32(RCL-ChR2(H134R)_EYFP)/wt'
>>> session.ecephys.sorted_data_asset.name
'ecephys_676909_2023-12-13_13-43-40_sorted_2024-03-01_16-02-45'

Development

See instructions in https://github.com/AllenNeuralDynamics/aind-session/CONTRIBUTING.md and the original template: https://github.com/AllenInstitute/copier-pdm-npc/blob/main/README.md

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

aind_session-0.1.1.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

aind_session-0.1.1-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file aind_session-0.1.1.tar.gz.

File metadata

  • Download URL: aind_session-0.1.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.18.0 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for aind_session-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f02052fb6903937bf9c39a898048d28ed824185409f62d93a26c6dbcf2599549
MD5 310c6dffe308d8035e3ce9c874356cfe
BLAKE2b-256 187f8de607540d970c66bb5eaacb5c34392c3eca1718c76be5132abd0ce9f9f5

See more details on using hashes here.

File details

Details for the file aind_session-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aind_session-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.18.0 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for aind_session-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be0ec38369aebedaceeed01ef0763fd4017239abc2e6c1bba5485c4f004d85cb
MD5 f57449844de579cb961d0958dd6842a0
BLAKE2b-256 b55e1f6f71b8ea8070a80427eb07a0d89e343fdcaf32555d0290b148f58dd160

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