Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 27, 2024
1 parent 92f10d5 commit 152656a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
1 change: 1 addition & 0 deletions src/pynwb/ndx_microscopy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

Microscopy = get_class("Microscopy", extension_name)
from .microscopy import MicroscopyTable

ImagingSpace = get_class("ImagingSpace", extension_name)
PlanarImagingSpace = get_class("PlanarImagingSpace", extension_name)
VolumetricImagingSpace = get_class("VolumetricImagingSpace", extension_name)
Expand Down
13 changes: 8 additions & 5 deletions src/pynwb/ndx_microscopy/microscopy.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
from hdmf.utils import docval, popargs

from pynwb import get_class

MicroscopyTable = get_class("MicroscopyTable", "ndx-microscopy")


@docval(
{'name': 'region', 'type': list, 'doc': 'the indices of the MicroscopyTable'},
{'name': 'description', 'type': str, 'doc': 'a brief description of what these table entries represent'},
{"name": "region", "type": list, "doc": "the indices of the MicroscopyTable"},
{"name": "description", "type": str, "doc": "a brief description of what these table entries represent"},
)
def create_microscopy_table_region(self, **kwargs):
region, description = popargs('region', 'description', kwargs)
name = 'microscopy_table_region'
region, description = popargs("region", "description", kwargs)
name = "microscopy_table_region"
return super(MicroscopyTable, self).create_region(name=name, region=region, description=description)

MicroscopyTable.create_microscopy_table_region = create_microscopy_table_region

MicroscopyTable.create_microscopy_table_region = create_microscopy_table_region
2 changes: 1 addition & 1 deletion src/pynwb/ndx_microscopy/testing/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ._mock import (
mock_MicroscopyTable,
mock_Microscopy,
mock_MicroscopyTable,
mock_PlanarImagingSpace,
mock_PlanarMicroscopySeries,
mock_VariableDepthMicroscopySeries,
Expand Down
14 changes: 7 additions & 7 deletions src/pynwb/ndx_microscopy/testing/_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
from typing import Optional, Tuple

import numpy as np
from pynwb.testing.mock.utils import name_generator

import ndx_microscopy
from ndx_ophys_devices.testing import (
mock_Indicator,
mock_ExcitationSource,
mock_Photodetector,
mock_DichroicMirror,
mock_BandOpticalFilter,
mock_DichroicMirror,
mock_EdgeOpticalFilter,
mock_ExcitationSource,
mock_Indicator,
mock_Microscope,
mock_ObjectiveLens,
mock_Photodetector,
)
from pynwb.testing.mock.utils import name_generator

import ndx_microscopy


def mock_Microscopy(
Expand Down

0 comments on commit 152656a

Please sign in to comment.