Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pyntcloud/io/las.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def convert_color_to_dtype(data, output_dtype):
column_max_values = data["points"].loc[:, column_names].max()
# Do not scale color values restricted to [0, 255]
if column_max_values.to_numpy().max() >= 256:
data["points"].loc[:, column_names] /= 256
data["points"].loc[:, column_names] //= 256
data["points"] = data["points"].astype(
{"red": output_dtype, "green": output_dtype, "blue": output_dtype}
)
Expand Down