Overview
Python tools for working with Silver Lab data in the NWB2 format
Free software: MIT license
This Python package simplifies access to NWB data for typical Silver Lab experiments, and converts data from Labview format into NWB. It provides a few command-line utilities, as well as supporting access from other Python software.
This work was funded by the National Institute of Neurological Disorders and Stroke of the National Institutes of Health under award number U01NS113273 (to Professor R. Angus Silver). The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health.
This work was funded by the Wellcome Trust (101445, 203048) and the National Institute of Neurological Disorders and Stroke of the National Institutes of Health under award number U01NS113273. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institutes of Health. These grants were awarded to Professor R. Angus Silver.
Installation
Some of our dependencies are hard to install, so it’s best to use conda:
conda create -n nwb2 python=3.6 pip numpy pandas hdf5 h5py conda install -n nwb2 av tifffile -c conda-forge conda activate nwb2 pip install silverlabnwb[video]
Documentation
Development
Testing uses pytest, along with tox to test on multiple Python installations and do style checks etc.
To install the developer packages, run:
pip install .[test]
To test just on your current Python:
pytest
To run all the tests run:
tox
The automatic tests make use of various environment variables to customise what is run.
No ‘import’ tests will run unless SILVERLAB_DATA_DIR is set and points to a folder containing suitable data. A version of this folder is available through UCL’s OneDrive at present, but only contains smaller sample data. The full datasets are available on Jonathan’s Mac or the SilverLab shared drive.
Set SILVERLAB_TEST_LONG_IMPORTS to 1 to test importing full-size datasets.
Set SILVERLAB_GEN_REF to 1 to regenerate reference signatures.
Note, to combine the coverage data from all the tox environments run:
Windows |
set PYTEST_ADDOPTS=--cov-append tox |
|---|---|
Other |
PYTEST_ADDOPTS=--cov-append tox |
Changelog
0.1.0 (2020-06-09)
First release on PyPI.
0.1.1 (2020-08-06)
Minor patch to documentation and change log.
0.2.0 (2020-09-03)
Update to pynwb 1.3.2
handles up to LabView 2.3.1
red and green channels now on same imaging plane
manifold replaced by origin coordinates and grid spacing
Metadata
Release files for silverlabnwb 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 | Actions |
|---|---|---|---|---|
| silverlabnwb-0.2.0.tar.gz | 511.4 kB | Without provenance | Details for silverlabnwb-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| silverlabnwb-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for silverlabnwb-0.2.0-py3-none-any.whl |
Total release size: 562.8 kB
Release files / silverlabnwb-0.2.0.tar.gz
| Download URL | silverlabnwb-0.2.0.tar.gz |
|---|---|
| Size | 511.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d8c3570dfc3d96f1aa66dd1ce4dee36537111c66fc052dde06f88b69c2f0a038
|
|
BLAKE2b-256 checksum How to use checksums |
a0c7f0d608cc75280495228cbbc2315016694607ec8a366046589478663d6733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10
|
Release files / silverlabnwb-0.2.0-py3-none-any.whl
| Download URL | silverlabnwb-0.2.0-py3-none-any.whl |
|---|---|
| Size | 51.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4b4834b70cd10a3767bbdf09ad401ad5b2eca4af15529b5ad936c245e4460a7c
|
|
BLAKE2b-256 checksum How to use checksums |
bda7a086b3b54adfae8e44cde877337aa63eb8c8f6e2acdda04a2b3ffcb2dea1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/50.1.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10
|
Security for silverlabnwb 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.