Metadata-Version: 2.1
Name: ndx-dandi-icephys
Version: 0.4.0
Summary: DandiIcephysMetadata extension.
Home-page: UNKNOWN
Author: Luiz Tauffer and Ben Dichter
Author-email: ben.dichter@gmail.com
License: BSD3
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Description-Content-Type: text/markdown
Requires-Dist: pynwb (>=1.0.2)

# ndx-dandi-icephys extension for NWB:N

Extension of the [lab_meta_data](https://pynwb.readthedocs.io/en/stable/pynwb.file.html#pynwb.file.NWBFile.lab_meta_data) field.

[![PyPI version](https://badge.fury.io/py/ndx-dandi-icephys.svg)](https://badge.fury.io/py/ndx-dandi-icephys)

[Python Installation](#python-installation)

[Python Usage](#python-usage)

### Python Installation
```bash
pip install ndx-dandi-icephys
```

### Python Usage

```python
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'])
```


