ndx-ophys-devices


Namendx-ophys-devices JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryThis is an NWB extension for storing metadata of devices used in optical experimental setup (microscopy, fiber photometry, optogenetic stimulation etc.)
upload_time2024-12-18 10:10:02
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseBSD-3
keywords nwb neurodatawithoutborders ndx-extension nwb-extension
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ndx-ophys-devices Extension for NWB

This is an NWB extension for storing metadata of devices used in optical experimental setup (microscopy, fiber photometry, optogenetic stimulation etc.)

This extension consists of 11 new neurodata types:

DeviceModel extends Device to hold metadata on the model of the device. 
Indicator extends NWBContainer to hold metadata on the fluorescent indicator (ex. label=GCaMP6).
Effector extends NWBContainer to hold metadata on the effector/opsin (ex. label=hChR2).
OpticalFiber extends DeviceModel to hold metadata on the optical fiber (ex. numerical_aperture=0.39).
ExcitationSource extends DeviceModel to hold metadata on the excitation source (ex. excitation_wavelength_in_nm=470.0).
PulsedExcitationSource extends ExcitationSource to hold metadata on the pulsed excitation source (ex. pulse_rate_in_Hz=1000.0).
Photodetector extends DeviceModel to hold metadata on the photodetector (ex. detected_wavelength_in_nm=520.0).
DichroicMirror extends DeviceModel to hold metadata on the dichroic mirror (ex. cut_on_wavelength_in_nm=470.0).
OpticalFilter extends DeviceModel to hold metadata on a general optical filter (ex filter_type='Bandpass')
BandOpticalFilter extends OpticalFilter to hold metadata on any bandpass or bandstop optical filters (ex. center_wavelength_in_nm=505.0).
EdgeOpticalFilter extends OpticalFilter to hold metadata on any edge optical filters (ex. cut_wavelength_in_nm=585.0).
ObjectiveLens extends DeviceModel to hold metadata on the objective lens (ex magnification=60.0)

## Installation
To install the latest stable release through PyPI,
```bash
pip install ndx-ophys-devices
```

## Usage

```python
import datetime
import numpy as np
from pynwb import NWBFile
from ndx_ophys_devices import (
    Indicator,
    OpticalFiber,
    ExcitationSource,
    PulsedExcitationSource,
    Photodetector,
    DichroicMirror,
    BandOpticalFilter,
    EdgeOpticalFilter,
    ObjectiveLens,
    Effector,
    )

nwbfile = NWBFile(
    session_description='session_description',
    identifier='identifier',
    session_start_time=datetime.datetime.now(datetime.timezone.utc)
)

indicator = Indicator(
    name="indicator",
    description="Green indicator",
    label="GCamp6f",
    injection_brain_region="VTA",
    injection_coordinates_in_mm=(3.0, 2.0, 1.0),
)
effector = Effector(
    name="effector",
    description="Excitatory opsin",
    label="hChR2",
    injection_brain_region="VTA",
    injection_coordinates_in_mm=(3.0, 2.0, 1.0),
)

optical_fiber = OpticalFiber(
    name="optical_fiber",
    manufacturer="fiber manufacturer",
    model="fiber model",
    numerical_aperture=0.2,
    core_diameter_in_um=400.0,
)

objective_lens = ObjectiveLens(
    name="objective_lens",
    manufacturer="objective lens manufacturer",
    model="objective lens model",
    numerical_aperture=0.39,
    magnification=40.0,
)

excitation_source = ExcitationSource(
    name="excitation_source",
    description="excitation sources for green indicator",
    manufacturer="laser manufacturer",
    model="laser model",
    illumination_type="laser",
    excitation_wavelength_in_nm=470.0,
    power_in_W= 0.7,
    intensity_in_W_per_m2= 0.005,
)
pulsed_excitation_source = PulsedExcitationSource(
    name="pulsed_excitation_source",
    description="pulsed excitation sources for red indicator",
    manufacturer="laser manufacturer",
    model="laser model",
    illumination_type="laser",
    excitation_wavelength_in_nm=525.0,
    peak_power_in_W=0.7,
    peak_pulse_energy_in_J=0.7,
    intensity_in_W_per_m2=0.005,
    exposure_time_in_s=2.51e-13,
    pulse_rate_in_Hz=2.0e6,
)

photodetector = Photodetector(
    name="photodetector",
    description="photodetector for green emission",
    manufacturer="photodetector manufacturer",
    model="photodetector model",
    detector_type="PMT",
    detected_wavelength_in_nm=520.0,
    gain=100.0,
)

dichroic_mirror = DichroicMirror(
    name="dichroic_mirror",
    description="Dichroic mirror for green indicator",
    manufacturer="dichroic mirror manufacturer",
    model="dichroic mirror model",
    cut_on_wavelength_in_nm=470.0,
    transmission_band_in_nm=(460.0, 480.0),
    cut_off_wavelength_in_nm=500.0,
    reflection_band_in_nm=(490.0, 520.0),
    angle_of_incidence_in_degrees=45.0,
)

band_optical_filter = BandOpticalFilter(
    name="band_optical_filter",
    description="excitation filter for green indicator",
    manufacturer="filter manufacturer",
    model="filter model",
    center_wavelength_in_nm=480.0,
    bandwidth_in_nm=30.0, # 480±15nm
    filter_type="Bandpass",
)

edge_optical_filter = EdgeOpticalFilter(
    name="edge_optical_filter",
    description="emission filter for green indicator",
    model="emission filter model",
    cut_wavelength_in_nm=585.0,
    slope_in_percent_cut_wavelength=1.0,
    slope_starting_transmission_in_percent=10.0,
    slope_ending_transmission_in_percent=80.0,
    filter_type="Longpass",
)


nwbfile.add_lab_metadata(indicator)
nwbfile.add_lab_metadata(effector)
nwbfile.add_device(optical_fiber)
nwbfile.add_device(objective_lens)
nwbfile.add_device(excitation_source)
nwbfile.add_device(pulsed_excitation_source)
nwbfile.add_device(photodetector)
nwbfile.add_device(dichroic_mirror)
nwbfile.add_device(band_optical_filter)
nwbfile.add_device(edge_optical_filter)

```


## Entity relationship diagrams

#### Indicator and Effector

```mermaid
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#ffffff', "primaryBorderColor': '#144E73', 'lineColor': '#D96F32'}}}%%
classDiagram
    direction BT
    class Indicator{
        <<NWBContainer>>
        --------------------------------------
        attributes
        --------------------------------------
        label : text
        description : text, optional
        manufacturer : text, optional
        injection_brain_region : text, optional
        injection_coordinates_in_mm : numeric, length 3, optional
    }
    class Effector{
        <<NWBContainer>>
        --------------------------------------
        attributes
        --------------------------------------
        label : text
        description : text, optional
        manufacturer : text, optional
        injection_brain_region : text, optional
        injection_coordinates_in_mm : numeric, length 3, optional
    }
```
#### Optical Filters

```mermaid
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#ffffff', "primaryBorderColor': '#144E73', 'lineColor': '#D96F32'}}}%%
classDiagram
    direction BT
    class DeviceModel{
        <<Device>>
        --------------------------------------
        attributes
        --------------------------------------
        model : text, optional
    }
    class DichroicMirror{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        cut_on_wavelength_in_nm : numeric, optional
        cut_off_wavelength_in_nm : numeric, optional
        reflection_band_in_nm : numeric, optional
        transmission_band_in_nm : numeric, optional
        angle_of_incidence_in_degrees : numeric, optional
    }
    class OpticalFilter{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        filter_type : text, optional
    }
    class BandOpticalFilter{
        <<OpticalFilter>>
        --------------------------------------
        attributes
        --------------------------------------
        center_wavelength_in_nm : numeric
        bandwidth_in_nm : numeric
    }
    class EdgeOpticalFilter{
        <<OpticalFilter>>
        --------------------------------------
        attributes
        --------------------------------------
        cut_wavelength_in_nm : numeric
        slope_in_percent_cut_wavelength : numeric, optional
        slope_starting_transmission_in_percent : numeric, optional
        slope_ending_transmission_in_percent : numeric, optional
    }
    DichroicMirror *-- DeviceModel : extends
    OpticalFilter *-- DeviceModel : extends
    BandOpticalFilter *-- OpticalFilter : extends
    EdgeOpticalFilter *-- OpticalFilter : extends
```
#### Other devices in the optical setup

```mermaid
%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#ffffff', "primaryBorderColor': '#144E73', 'lineColor': '#D96F32'}}}%%
classDiagram
    direction BT
    class DeviceModel{
        <<Device>>
        --------------------------------------
        attributes
        --------------------------------------
        model : text, optional
    }
    class ExcitationSource{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        illumination_type : text, optional
        excitation_wavelength_in_nm : numeric, optional
        power_in_W : numeric, optional
        intensity_in_W_per_m2 : numeric, optional
        exposure_time_in_s : numeric, optional
    }
    class PulsedExcitationSource{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        peak_power_in_W : numeric, optional
        peak_pulse_energy_in_J : numeric, optional
        pulse_rate_in_Hz : numeric, optional
    }
    class Photodetector{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        detector_type : text, optional
        detected_wavelength_in_nm : numeric, optional
        gain : numeric, optional
        gain_unit : text, false
    }
    class ObjectiveLens{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        numerical_aperture : numeric, optional
        magnification : numeric, optional
    }
    class OpticalFiber{
        <<DeviceModel>>
        --------------------------------------
        attributes
        --------------------------------------
        numerical_aperture : numeric, optional
        core_diameter_in_um : numeric, optional
    }
    
    ExcitationSource *-- DeviceModel : extends
    PulsedExcitationSource *-- ExcitationSource : extends
    Photodetector *-- DeviceModel : extends
    ObjectiveLens *-- DeviceModel : extends
    OpticalFilter *-- DeviceModel : extends
    BandOpticalFilter *-- OpticalFilter : extends
    EdgeOpticalFilter *-- OpticalFilter : extends
    DichroicMirror *-- DeviceModel : extends
    OpticalFiber *-- DeviceModel : extends
```

## Contributing

To help ensure a smooth Pull Request (PR) process, please always begin by raising an issue on the main repository so we can openly discuss any problems/additions before taking action.

The main branch of ndx-ophys-devices is protected; you cannot push to it directly. You must upload your changes by pushing a new branch, then submit your changes to the main branch via a Pull Request. This allows us to conduct automated testing of your contribution, and gives us a space for developers to discuss the contribution and request changes. If you decide to tackle an issue, please make yourself an assignee on the issue to communicate this to the team. Don’t worry - this does not commit you to solving this issue. It just lets others know who they should talk to about it.

From your local copy directory, use the following commands.

If you have not already, you will need to clone the repo:
```bash
$ git clone https://github.com/catalystneuro/neuroconv
```

First create a new branch to work on
```bash
$ git checkout -b <new_branch>
```

Make your changes. Add new devices related to optical experiment setup or add more attributes on the existing ones. To speed up the process, you can write mock function (see _mock.py) that would be used to test the new neurodata type

We will automatically run tests to ensure that your contributions didn’t break anything and that they follow our style guide. You can speed up the testing cycle by running these tests locally on your own computer by calling pytest from the top-level directory.
Push your feature branch to origin (i.e. GitHub)

```bash
$ git push origin <new_branch>
```

Once you have tested and finalized your changes, create a pull request (PR) targeting dev as the base branch:
Ensure the PR description clearly describes the problem and solution.
Include the relevant issue number if applicable. TIP: Writing e.g. “fix #613” will automatically close issue #613 when this PR is merged.
Before submitting, please ensure that the code follows the standard coding style of the respective repository.
If you would like help with your contribution, or would like to communicate contributions that are not ready to merge, submit a PR where the title begins with “[WIP].”

Update the CHANGELOG.md regularly to document changes to the extension.

NOTE: Contributed branches will be removed by the development team after the merge is complete and should, hence, not be used after the pull request is complete.


---
This extension was created using [ndx-template](https://github.com/nwb-extensions/ndx-template).
            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ndx-ophys-devices",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "NWB, NeurodataWithoutBorders, ndx-extension, nwb-extension",
    "author": null,
    "author_email": "Alessandra Trapani <alessandra.trapani@catalystneuro.com>",
    "download_url": "https://files.pythonhosted.org/packages/3b/61/49d606b75878c55a42a6c2e9b04fbf368ed9b918b8055b1289a0a0e43219/ndx_ophys_devices-0.1.0.tar.gz",
    "platform": null,
    "description": "# ndx-ophys-devices Extension for NWB\n\nThis is an NWB extension for storing metadata of devices used in optical experimental setup (microscopy, fiber photometry, optogenetic stimulation etc.)\n\nThis extension consists of 11 new neurodata types:\n\nDeviceModel extends Device to hold metadata on the model of the device. \nIndicator extends NWBContainer to hold metadata on the fluorescent indicator (ex. label=GCaMP6).\nEffector extends NWBContainer to hold metadata on the effector/opsin (ex. label=hChR2).\nOpticalFiber extends DeviceModel to hold metadata on the optical fiber (ex. numerical_aperture=0.39).\nExcitationSource extends DeviceModel to hold metadata on the excitation source (ex. excitation_wavelength_in_nm=470.0).\nPulsedExcitationSource extends ExcitationSource to hold metadata on the pulsed excitation source (ex. pulse_rate_in_Hz=1000.0).\nPhotodetector extends DeviceModel to hold metadata on the photodetector (ex. detected_wavelength_in_nm=520.0).\nDichroicMirror extends DeviceModel to hold metadata on the dichroic mirror (ex. cut_on_wavelength_in_nm=470.0).\nOpticalFilter extends DeviceModel to hold metadata on a general optical filter (ex filter_type='Bandpass')\nBandOpticalFilter extends OpticalFilter to hold metadata on any bandpass or bandstop optical filters (ex. center_wavelength_in_nm=505.0).\nEdgeOpticalFilter extends OpticalFilter to hold metadata on any edge optical filters (ex. cut_wavelength_in_nm=585.0).\nObjectiveLens extends DeviceModel to hold metadata on the objective lens (ex magnification=60.0)\n\n## Installation\nTo install the latest stable release through PyPI,\n```bash\npip install ndx-ophys-devices\n```\n\n## Usage\n\n```python\nimport datetime\nimport numpy as np\nfrom pynwb import NWBFile\nfrom ndx_ophys_devices import (\n    Indicator,\n    OpticalFiber,\n    ExcitationSource,\n    PulsedExcitationSource,\n    Photodetector,\n    DichroicMirror,\n    BandOpticalFilter,\n    EdgeOpticalFilter,\n    ObjectiveLens,\n    Effector,\n    )\n\nnwbfile = NWBFile(\n    session_description='session_description',\n    identifier='identifier',\n    session_start_time=datetime.datetime.now(datetime.timezone.utc)\n)\n\nindicator = Indicator(\n    name=\"indicator\",\n    description=\"Green indicator\",\n    label=\"GCamp6f\",\n    injection_brain_region=\"VTA\",\n    injection_coordinates_in_mm=(3.0, 2.0, 1.0),\n)\neffector = Effector(\n    name=\"effector\",\n    description=\"Excitatory opsin\",\n    label=\"hChR2\",\n    injection_brain_region=\"VTA\",\n    injection_coordinates_in_mm=(3.0, 2.0, 1.0),\n)\n\noptical_fiber = OpticalFiber(\n    name=\"optical_fiber\",\n    manufacturer=\"fiber manufacturer\",\n    model=\"fiber model\",\n    numerical_aperture=0.2,\n    core_diameter_in_um=400.0,\n)\n\nobjective_lens = ObjectiveLens(\n    name=\"objective_lens\",\n    manufacturer=\"objective lens manufacturer\",\n    model=\"objective lens model\",\n    numerical_aperture=0.39,\n    magnification=40.0,\n)\n\nexcitation_source = ExcitationSource(\n    name=\"excitation_source\",\n    description=\"excitation sources for green indicator\",\n    manufacturer=\"laser manufacturer\",\n    model=\"laser model\",\n    illumination_type=\"laser\",\n    excitation_wavelength_in_nm=470.0,\n    power_in_W= 0.7,\n    intensity_in_W_per_m2= 0.005,\n)\npulsed_excitation_source = PulsedExcitationSource(\n    name=\"pulsed_excitation_source\",\n    description=\"pulsed excitation sources for red indicator\",\n    manufacturer=\"laser manufacturer\",\n    model=\"laser model\",\n    illumination_type=\"laser\",\n    excitation_wavelength_in_nm=525.0,\n    peak_power_in_W=0.7,\n    peak_pulse_energy_in_J=0.7,\n    intensity_in_W_per_m2=0.005,\n    exposure_time_in_s=2.51e-13,\n    pulse_rate_in_Hz=2.0e6,\n)\n\nphotodetector = Photodetector(\n    name=\"photodetector\",\n    description=\"photodetector for green emission\",\n    manufacturer=\"photodetector manufacturer\",\n    model=\"photodetector model\",\n    detector_type=\"PMT\",\n    detected_wavelength_in_nm=520.0,\n    gain=100.0,\n)\n\ndichroic_mirror = DichroicMirror(\n    name=\"dichroic_mirror\",\n    description=\"Dichroic mirror for green indicator\",\n    manufacturer=\"dichroic mirror manufacturer\",\n    model=\"dichroic mirror model\",\n    cut_on_wavelength_in_nm=470.0,\n    transmission_band_in_nm=(460.0, 480.0),\n    cut_off_wavelength_in_nm=500.0,\n    reflection_band_in_nm=(490.0, 520.0),\n    angle_of_incidence_in_degrees=45.0,\n)\n\nband_optical_filter = BandOpticalFilter(\n    name=\"band_optical_filter\",\n    description=\"excitation filter for green indicator\",\n    manufacturer=\"filter manufacturer\",\n    model=\"filter model\",\n    center_wavelength_in_nm=480.0,\n    bandwidth_in_nm=30.0, # 480\u00b115nm\n    filter_type=\"Bandpass\",\n)\n\nedge_optical_filter = EdgeOpticalFilter(\n    name=\"edge_optical_filter\",\n    description=\"emission filter for green indicator\",\n    model=\"emission filter model\",\n    cut_wavelength_in_nm=585.0,\n    slope_in_percent_cut_wavelength=1.0,\n    slope_starting_transmission_in_percent=10.0,\n    slope_ending_transmission_in_percent=80.0,\n    filter_type=\"Longpass\",\n)\n\n\nnwbfile.add_lab_metadata(indicator)\nnwbfile.add_lab_metadata(effector)\nnwbfile.add_device(optical_fiber)\nnwbfile.add_device(objective_lens)\nnwbfile.add_device(excitation_source)\nnwbfile.add_device(pulsed_excitation_source)\nnwbfile.add_device(photodetector)\nnwbfile.add_device(dichroic_mirror)\nnwbfile.add_device(band_optical_filter)\nnwbfile.add_device(edge_optical_filter)\n\n```\n\n\n## Entity relationship diagrams\n\n#### Indicator and Effector\n\n```mermaid\n%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#ffffff', \"primaryBorderColor': '#144E73', 'lineColor': '#D96F32'}}}%%\nclassDiagram\n    direction BT\n    class Indicator{\n        <<NWBContainer>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        label : text\n        description : text, optional\n        manufacturer : text, optional\n        injection_brain_region : text, optional\n        injection_coordinates_in_mm : numeric, length 3, optional\n    }\n    class Effector{\n        <<NWBContainer>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        label : text\n        description : text, optional\n        manufacturer : text, optional\n        injection_brain_region : text, optional\n        injection_coordinates_in_mm : numeric, length 3, optional\n    }\n```\n#### Optical Filters\n\n```mermaid\n%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#ffffff', \"primaryBorderColor': '#144E73', 'lineColor': '#D96F32'}}}%%\nclassDiagram\n    direction BT\n    class DeviceModel{\n        <<Device>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        model : text, optional\n    }\n    class DichroicMirror{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        cut_on_wavelength_in_nm : numeric, optional\n        cut_off_wavelength_in_nm : numeric, optional\n        reflection_band_in_nm : numeric, optional\n        transmission_band_in_nm : numeric, optional\n        angle_of_incidence_in_degrees : numeric, optional\n    }\n    class OpticalFilter{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        filter_type : text, optional\n    }\n    class BandOpticalFilter{\n        <<OpticalFilter>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        center_wavelength_in_nm : numeric\n        bandwidth_in_nm : numeric\n    }\n    class EdgeOpticalFilter{\n        <<OpticalFilter>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        cut_wavelength_in_nm : numeric\n        slope_in_percent_cut_wavelength : numeric, optional\n        slope_starting_transmission_in_percent : numeric, optional\n        slope_ending_transmission_in_percent : numeric, optional\n    }\n    DichroicMirror *-- DeviceModel : extends\n    OpticalFilter *-- DeviceModel : extends\n    BandOpticalFilter *-- OpticalFilter : extends\n    EdgeOpticalFilter *-- OpticalFilter : extends\n```\n#### Other devices in the optical setup\n\n```mermaid\n%%{init: {'theme': 'base', 'themeVariables': {'primaryColor': '#ffffff', \"primaryBorderColor': '#144E73', 'lineColor': '#D96F32'}}}%%\nclassDiagram\n    direction BT\n    class DeviceModel{\n        <<Device>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        model : text, optional\n    }\n    class ExcitationSource{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        illumination_type : text, optional\n        excitation_wavelength_in_nm : numeric, optional\n        power_in_W : numeric, optional\n        intensity_in_W_per_m2 : numeric, optional\n        exposure_time_in_s : numeric, optional\n    }\n    class PulsedExcitationSource{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        peak_power_in_W : numeric, optional\n        peak_pulse_energy_in_J : numeric, optional\n        pulse_rate_in_Hz : numeric, optional\n    }\n    class Photodetector{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        detector_type : text, optional\n        detected_wavelength_in_nm : numeric, optional\n        gain : numeric, optional\n        gain_unit : text, false\n    }\n    class ObjectiveLens{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        numerical_aperture : numeric, optional\n        magnification : numeric, optional\n    }\n    class OpticalFiber{\n        <<DeviceModel>>\n        --------------------------------------\n        attributes\n        --------------------------------------\n        numerical_aperture : numeric, optional\n        core_diameter_in_um : numeric, optional\n    }\n    \n    ExcitationSource *-- DeviceModel : extends\n    PulsedExcitationSource *-- ExcitationSource : extends\n    Photodetector *-- DeviceModel : extends\n    ObjectiveLens *-- DeviceModel : extends\n    OpticalFilter *-- DeviceModel : extends\n    BandOpticalFilter *-- OpticalFilter : extends\n    EdgeOpticalFilter *-- OpticalFilter : extends\n    DichroicMirror *-- DeviceModel : extends\n    OpticalFiber *-- DeviceModel : extends\n```\n\n## Contributing\n\nTo help ensure a smooth Pull Request (PR) process, please always begin by raising an issue on the main repository so we can openly discuss any problems/additions before taking action.\n\nThe main branch of ndx-ophys-devices is protected; you cannot push to it directly. You must upload your changes by pushing a new branch, then submit your changes to the main branch via a Pull Request. This allows us to conduct automated testing of your contribution, and gives us a space for developers to discuss the contribution and request changes. If you decide to tackle an issue, please make yourself an assignee on the issue to communicate this to the team. Don\u2019t worry - this does not commit you to solving this issue. It just lets others know who they should talk to about it.\n\nFrom your local copy directory, use the following commands.\n\nIf you have not already, you will need to clone the repo:\n```bash\n$ git clone https://github.com/catalystneuro/neuroconv\n```\n\nFirst create a new branch to work on\n```bash\n$ git checkout -b <new_branch>\n```\n\nMake your changes. Add new devices related to optical experiment setup or add more attributes on the existing ones. To speed up the process, you can write mock function (see _mock.py) that would be used to test the new neurodata type\n\nWe will automatically run tests to ensure that your contributions didn\u2019t break anything and that they follow our style guide. You can speed up the testing cycle by running these tests locally on your own computer by calling pytest from the top-level directory.\nPush your feature branch to origin (i.e. GitHub)\n\n```bash\n$ git push origin <new_branch>\n```\n\nOnce you have tested and finalized your changes, create a pull request (PR) targeting dev as the base branch:\nEnsure the PR description clearly describes the problem and solution.\nInclude the relevant issue number if applicable. TIP: Writing e.g. \u201cfix #613\u201d will automatically close issue #613 when this PR is merged.\nBefore submitting, please ensure that the code follows the standard coding style of the respective repository.\nIf you would like help with your contribution, or would like to communicate contributions that are not ready to merge, submit a PR where the title begins with \u201c[WIP].\u201d\n\nUpdate the CHANGELOG.md regularly to document changes to the extension.\n\nNOTE: Contributed branches will be removed by the development team after the merge is complete and should, hence, not be used after the pull request is complete.\n\n\n---\nThis extension was created using [ndx-template](https://github.com/nwb-extensions/ndx-template).",
    "bugtrack_url": null,
    "license": "BSD-3",
    "summary": "This is an NWB extension for storing metadata of devices used in optical experimental setup (microscopy, fiber photometry, optogenetic stimulation etc.)",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "nwb",
        " neurodatawithoutborders",
        " ndx-extension",
        " nwb-extension"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb982fb447c1e4766e7758e44021d95e1a07535b80d165833fd8112e640d52a1",
                "md5": "e58f96092faef44b920bc31e63d753d3",
                "sha256": "f8c64bc75827597feca3177a0d354301262ce34b639ddc8ccff9d9b59571c190"
            },
            "downloads": -1,
            "filename": "ndx_ophys_devices-0.1.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e58f96092faef44b920bc31e63d753d3",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 12373,
            "upload_time": "2024-12-18T10:09:59",
            "upload_time_iso_8601": "2024-12-18T10:09:59.405417Z",
            "url": "https://files.pythonhosted.org/packages/cb/98/2fb447c1e4766e7758e44021d95e1a07535b80d165833fd8112e640d52a1/ndx_ophys_devices-0.1.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b6149d606b75878c55a42a6c2e9b04fbf368ed9b918b8055b1289a0a0e43219",
                "md5": "d09aba40f34e74ebfbdadc0a07b146e0",
                "sha256": "072393416f4299303a7004282ea80aa9a6d01f722a6d4676f7de3beec410f648"
            },
            "downloads": -1,
            "filename": "ndx_ophys_devices-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d09aba40f34e74ebfbdadc0a07b146e0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 20691,
            "upload_time": "2024-12-18T10:10:02",
            "upload_time_iso_8601": "2024-12-18T10:10:02.536207Z",
            "url": "https://files.pythonhosted.org/packages/3b/61/49d606b75878c55a42a6c2e9b04fbf368ed9b918b8055b1289a0a0e43219/ndx_ophys_devices-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-18 10:10:02",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ndx-ophys-devices"
}
        
Elapsed time: 0.53907s