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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ndx-dandi-icephys-0.4.0.tar.gz.

File metadata

  • Download URL: ndx-dandi-icephys-0.4.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for ndx-dandi-icephys-0.4.0.tar.gz
Algorithm Hash digest
SHA256 fc667f2b8f8cb2b7448ffb74d810f3508b31c135023117327f80e6d3dbd2544e
MD5 c214073b13700a8135e9b4f520ac55bc
BLAKE2b-256 9fc6b3d967c1d340392784d0949e7bdaf33ef2a87ee11a2d27332f0fe658a477

See more details on using hashes here.

File details

Details for the file ndx_dandi_icephys-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ndx_dandi_icephys-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.3

File hashes

Hashes for ndx_dandi_icephys-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55e8a03d2715242701be280186ae9c3e085f275143fdb56a4a6e92020eaeb690
MD5 02f78f4cb47c600b266725258a7fe431
BLAKE2b-256 aad805e3fefca88dc47895fe662ed17bd1a3566a6898778cded19a305823c04a

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