diff --git a/pyulog/core.py b/pyulog/core.py index b37b709..e47a65f 100644 --- a/pyulog/core.py +++ b/pyulog/core.py @@ -427,7 +427,8 @@ def _make_data_items(self): field_encoding = self._UNPACK_TYPES[field_type][0] field_data = data_set.data[field_name][i_sample] - # For char type, convert np.int8 into single bytes() object so that struct.pack can handle it + # For char type, convert np.int8 into single bytes() object + # so that struct.pack can handle it if field_encoding == 'c': field_data = bytes(chr(field_data), 'utf-8')