Skip to content

Commit

Permalink
Fix formatting in sensor_msgs_py (#248)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored May 14, 2024
1 parent 9136871 commit 0e0450b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sensor_msgs_py/sensor_msgs_py/numpy_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def count_elem(dt):
# optimization: avoid list comprehension if no subarray
fields.extend(subfields)
else:
fields.extend([(d, c, o + i*size) for d, c, o in subfields])
fields.extend([(d, c, o + i * size) for d, c, o in subfields])
return fields


Expand Down
6 changes: 3 additions & 3 deletions sensor_msgs_py/sensor_msgs_py/point_cloud2.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def dtype_from_fields(fields: Iterable[PointField], point_step: Optional[int] =

# Create dtype
dtype_dict = {
'names': field_names,
'formats': field_datatypes,
'offsets': field_offsets
'names': field_names,
'formats': field_datatypes,
'offsets': field_offsets
}
if point_step is not None:
dtype_dict['itemsize'] = point_step
Expand Down

0 comments on commit 0e0450b

Please sign in to comment.