Skip to content

Commit

Permalink
feedback: strified -> stringified
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Mar 2, 2016
1 parent 41788a6 commit 9b7b996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/rostopic/src/rostopic/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ def _str_plot(val, time_offset=None, current_time=None, field_filter=None, type_
:param val: message
:param current_time: current :class:`genpy.Time` to use if message does not contain its own timestamp.
:param time_offset: (optional) for time printed for message, print as offset against this :class:`genpy.Time`
:param field_filter: filter the fields that are strified for Messages, ``fn(Message)->iter(str)``
:param field_filter: filter the fields that are stringified for Messages, ``fn(Message)->iter(str)``
:returns: comma-separated list of field values in val, ``str``
"""

Expand Down Expand Up @@ -616,7 +616,7 @@ def __init__(self, topic, msg_eval, plot=False, filter_fn=None,
:param echo_all_topics: (optional) if ``True``, echo all messages in bag, ``bool``
:param offset_time: (optional) if ``True``, display time as offset from current time, ``bool``
:param count: number of messages to echo, ``None`` for infinite, ``int``
:param field_filter_fn: filter the fields that are strified for Messages, ``fn(Message)->iter(str)``
:param field_filter_fn: filter the fields that are stringified for Messages, ``fn(Message)->iter(str)``
:param value_transform_fn: transform the values of Messages, ``fn(Message)->Message``
:param fixed_numeric_width: fixed width for numeric values, ``None`` for automatic, ``int``
:param value_transform_fn: transform the values of Messages, ``fn(Message)->Message``
Expand Down Expand Up @@ -672,7 +672,7 @@ def custom_strify_message(self, val, indent='', time_offset=None, current_time=N
text = genpy.message.strify_message(val, indent=indent, time_offset=time_offset, current_time=current_time, field_filter=field_filter, fixed_numeric_width=fixed_numeric_width)
if value_untransform_fn is not None:
# this operation is necessary because value_transform does change the type of message
# and that causes not strified values next time
# and that causes not stringified values next time
val = value_untransform_fn(val)
return text

Expand Down

0 comments on commit 9b7b996

Please sign in to comment.