Skip to main content

DandiIcephysMetadata extension.

Project description

ndx-dandi-icephys extension for NWB:N

Extension of the lab_meta_data field.

PyPI version

Python Installation

Python Usage

Python Installation

pip install ndx-dandi-icephys

Python Usage

from datetime import datetime
from pynwb import NWBFile, NWBHDF5IO
from ndx_dandi_icephys import DandiIcephysMetadata

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

# Creates LabMetaData container
lab_metadata = DandiIcephysMetadata(
    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['DandiIcephysMetadata'])

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-dandi-icephys-0.4.0.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

ndx_dandi_icephys-0.4.0-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

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