Skip to content

Commit

Permalink
chore(nml): update method docs and type hint
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
sanjayankur31 committed Mar 5, 2024
1 parent f268dc7 commit 743ee47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions neuroml/nml/helper_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -1100,11 +1100,11 @@ def get_segment_ids_vs_segments(self) -> typing.Dict[str, Segment]:
return segments
def get_all_segments_in_group(self,
segment_group: SegmentGroup,
segment_group: typing.Union[str, SegmentGroup],
assume_all_means_all: bool = True) -> typing.List[int]:
"""Get all the segments in a segment group of the cell.
:param segment_group: segment group to get all segments of
:param segment_group: segment group id (str) or object (SegmentGroup) to get all segments of
:param assume_all_means_all: return all segments if the "all" segment
group wasn't explicitly defined
:return: list of segment ids
Expand Down
10 changes: 6 additions & 4 deletions neuroml/nml/nml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# -*- coding: utf-8 -*-

#
# Generated Mon Mar 4 16:33:06 2024 by generateDS.py version 2.43.3.
# Python 3.11.8 (main, Feb 28 2024, 00:00:00) [GCC 13.2.1 20231205 (Red Hat 13.2.1-6)]
# Generated Tue Mar 5 14:34:31 2024 by generateDS.py version 2.43.3.
# Python 3.11.8 (main, Feb 7 2024, 00:00:00) [GCC 13.2.1 20231205 (Red Hat 13.2.1-6)]
#
# Command line options:
# ('-o', 'nml.py')
Expand Down Expand Up @@ -48678,11 +48678,13 @@ def get_segment_ids_vs_segments(self) -> typing.Dict[str, Segment]:
return segments

def get_all_segments_in_group(
self, segment_group: SegmentGroup, assume_all_means_all: bool = True
self,
segment_group: typing.Union[str, SegmentGroup],
assume_all_means_all: bool = True,
) -> typing.List[int]:
"""Get all the segments in a segment group of the cell.

:param segment_group: segment group to get all segments of
:param segment_group: segment group id (str) or object (SegmentGroup) to get all segments of
:param assume_all_means_all: return all segments if the "all" segment
group wasn't explicitly defined
:return: list of segment ids
Expand Down

0 comments on commit 743ee47

Please sign in to comment.