ndx-bipolar-referencing Extension for NWB:N
Structure for storing the bipolar schema of a recording in an NWB file.
python installation
$ pip install ndx-bipolar-referencing
python usage
from pynwb import NWBHDF5IO, NWBFile
from pynwb.file import DynamicTable, DynamicTableRegion
from datetime import datetime
from ndx_bipolar_referencing import EcephysExt
from pynwb.ecephys import ElectricalSeries
import numpy as np
nwbfile = NWBFile('description', 'id', datetime.now().astimezone())
device = nwbfile.create_device('device_name')
electrode_group = nwbfile.create_electrode_group('electrode_group',
'desc', 'loc', device=device)
for _ in range(20):
nwbfile.add_electrode(np.nan, np.nan, np.nan, np.nan, 'loc', 'filt',
electrode_group)
anode_electrodes = DynamicTableRegion('anode',
np.arange(0, 20, 2),
'desc',
nwbfile.electrodes)
cathode_electrodes = DynamicTableRegion('cathode',
np.arange(1, 20, 2),
'desc',
nwbfile.electrodes)
bipolar_reference_scheme = DynamicTable(name='bipolar_reference_scheme',
description='desc',
columns=[anode_electrodes,
cathode_electrodes])
ecephys_ext = EcephysExt(bipolar_reference_scheme=bipolar_reference_scheme)
nwbfile.add_lab_meta_data(ecephys_ext)
bipolar_scheme = DynamicTableRegion(
name='electrodes',
data=np.arange(0, 10),
description='desc',
table=nwbfile.lab_meta_data['extracellular_electrophysiology_extensions'].bipolar_reference_scheme)
ec_series = ElectricalSeries(name='test_ec_series',
description='desc',
data=np.random.rand(100, 10),
rate=1000.,
electrodes=bipolar_scheme)
nwbfile.add_acquisition(ec_series)
with NWBHDF5IO('test_nwb.nwb', 'w') as io:
io.write(nwbfile)
with NWBHDF5IO('test_nwb.nwb', 'r', load_namespaces=True) as io:
nwbfile = io.read()
print(nwbfile.acquisition['test_ec_series'].electrodes.table['anode'].data)
Metadata
Release files for ndx-bipolar-referencing 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ndx-bipolar-referencing-0.2.0.tar.gz | 13.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ndx_bipolar_referencing-0.2.0-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 18.8 kB
Release files / ndx-bipolar-referencing-0.2.0.tar.gz
| Download URL | ndx-bipolar-referencing-0.2.0.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dd9559c6a0b921a6c1c12a0ce56bdbd402379be7859f1681aad42dcbe23d0e62
|
|
BLAKE2b-256 checksum How to use checksums |
572096537e038207eb9d0e8ba40b5bba2e1126ec78cf0e8bc0f9955bfcba0738
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Release files / ndx_bipolar_referencing-0.2.0-py2.py3-none-any.whl
| Download URL | ndx_bipolar_referencing-0.2.0-py2.py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
78cdd8809c97f95a21a4bbcbce97a23a93db9252e5d9eb2aa1d28bcd4c8c0cad
|
|
BLAKE2b-256 checksum How to use checksums |
364bce6d598b0aab44ea70341787d4d1aabd2fecf03e41e09e049caf844c9e45
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8
|
Security for ndx-bipolar-referencing 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.