Skip to content

Commit 906f1ba

Browse files
committed
Update rips module, proto files, and Python examples
1 parent 6e61dbd commit 906f1ba

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs/source/ProtobufStructures.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,10 +833,8 @@ Many protobuf messages contain optional fields. Use the ``HasField()`` method to
833833
if entry.HasField('saturation'):
834834
saturation_value = entry.saturation
835835
else:
836-
saturation_value = None
836+
saturation_value = "1*"
837837
838-
# Or use getattr with a default value
839-
saturation = getattr(entry, 'saturation', None)
840838
841839
Working with Vec3d and Vec3i
842840
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)