Skip to content

Commit

Permalink
Merge branch 'tickets/DM-15815' of https://github.com/lsst/daf_base i…
Browse files Browse the repository at this point in the history
…nto tickets/DM-15815
  • Loading branch information
squisty committed Jun 26, 2020
2 parents 51ac87f + 71b1bbb commit 219ac67
Showing 1 changed file with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,16 @@ def getPropertySetState(container, asLists=False):
state : `list` of `tuple` or `list` of `list`
The state, as a list of tuples (or lists), each of which contains
the following 3 items:
- name (a `str`): the name of the item
- elementTypeName (a `str`): the suffix of a ``setX`` method name
name (a `str`)
the name of the item
elementTypeName (a `str`)
the suffix of a ``setX`` method name
which is appropriate for the data type. For example integer
data has ``elementTypeName="Int"` which corresponds to
the ``setInt`` method.
- value: the data for the item, in a form compatible
value
the data for the item, in a form compatible
with the set method named by ``elementTypeName``
"""
names = container.names(topLevelOnly=True)
Expand All @@ -84,14 +88,18 @@ def getPropertyListState(container, asLists=False):
state : `list` of `tuple` or `list` of `list`
The state, as a list of tuples (or lists), each of which contains
the following 4 items:
- name (a `str`): the name of the item
- elementTypeName (a `str`): the suffix of a ``setX`` method name
name (a `str`):
the name of the item
elementTypeName (a `str`):
the suffix of a ``setX`` method name
which is appropriate for the data type. For example integer
data has ``elementTypeName="Int"` which corresponds to
the ``setInt`` method.
- value: the data for the item, in a form compatible
value
the data for the item, in a form compatible
with the set method named by ``elementTypeName``
- comment (a `str`): the comment. This item is only present
comment (a `str`): the comment. This item is only present
if ``container`` is a PropertyList.
"""
sequence = list if asLists else tuple
Expand Down

0 comments on commit 219ac67

Please sign in to comment.