-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0729028
commit 8d945f7
Showing
3 changed files
with
19 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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'}, | ||
) | ||
def create_microscopy_table_region(self, **kwargs): | ||
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 |