Skip to content
This repository has been archived by the owner on Aug 18, 2022. It is now read-only.

Commit

Permalink
Fix doctest of PackedPointRecord
Browse files Browse the repository at this point in the history
  • Loading branch information
tmontaigu committed Jun 5, 2018
1 parent bff2439 commit 4c09f52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylas/point/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ def empty(cls, point_format_id): pass

class PackedPointRecord(PointRecord):
"""
In the PackedPointRecord, fields that are a combinations of many sub-fields (bit-sized fields)
In the PackedPointRecord, fields that are a combinations of many sub-fields (fields stored on les than a byte)
are still packed together and are only de-packed and re-packed when accessed.
This uses of less memory than if the sub-fields were unpacked
However some operations on sub-fields require extra steps:
return number is a sub-field
>>> #return number is a sub-field
>>> packed_point_record = PackedPointRecord.zeros(0, 10)
>>> packed_point_record['return_number'][:] = 1
>>> np.alltrue(packed_point_record == 1)
Expand Down

0 comments on commit 4c09f52

Please sign in to comment.