Skip to main content

LabMetaData extension.

Project description

ndx-labmetadata-abf extension for NWB:N

Extension of the lab_meta_data field.

[PyPI version

Python Installation

Python Usage

Python Installation

pip install git+https://github.com/ben-dichter-consulting/ndx-labmetadata-abf.git

Python Usage

from datetime import datetime
from pynwb import NWBFile, NWBHDF5IO
from ndx_labmetadata_abf import LabMetaData_ext

nwb = NWBFile('session_description', 'identifier', datetime.now().astimezone())

# Creates LabMetaData container
lab_metadata = LabMetaData_ext(
    name='LabMetaData',
    cell_id='cell_id',
    tissue_sample_id='tissue_sample_id',
)

# Add to file
nwb.add_lab_meta_data(lab_metadata)

# Write nwb file
with NWBHDF5IO('test_labmetadata.nwb', 'w') as io:
    io.write(nwb)

# Read nwb file and check its content
with NWBHDF5IO('test_labmetadata.nwb', 'r', load_namespaces=True) as io:
    nwb = io.read()
    print(nwb.lab_meta_data['LabMetaData'])

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

ndx-labmetadata-abf-0.1.1.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

ndx_labmetadata_abf-0.1.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file ndx-labmetadata-abf-0.1.1.tar.gz.

File metadata

  • Download URL: ndx-labmetadata-abf-0.1.1.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for ndx-labmetadata-abf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e85627ed7b7667811374da8c6d070ced785c24888a7139751caa2181cf5540de
MD5 71ab99c26bb6abb290bce1c298894036
BLAKE2b-256 0cc4a11d3febc0fcd6861218f19ba19a30721670cde87836ea5a638ba07a9630

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: ndx_labmetadata_abf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0.post20200210 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.4

File hashes

Hashes for ndx_labmetadata_abf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d507f37536cf65731079be3c780c5f3c6348624b83f0a1b7e5134f8f4ddadbb
MD5 b442867b2ca8041b68355634734e5b74
BLAKE2b-256 878215c759b24e7ca59dc77c70d91b0f6bef12f9bbfe7f8c0afb678d7a05082a

See more details on using hashes here.

Provenance

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