DandiIcephysMetadata extension.
Project description
ndx-dandi-icephys extension for NWB:N
Extension of the lab_meta_data field.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ndx_dandi_icephys-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55e8a03d2715242701be280186ae9c3e085f275143fdb56a4a6e92020eaeb690 |
|
MD5 | 02f78f4cb47c600b266725258a7fe431 |
|
BLAKE2b-256 | aad805e3fefca88dc47895fe662ed17bd1a3566a6898778cded19a305823c04a |