Skip to content

Commit

Permalink
Merge pull request #50 from kbevers/write-faster
Browse files Browse the repository at this point in the history
Removed unnecessary ndarray to list conversion. Speeds up writing significantly.
  • Loading branch information
grantbrown committed Jun 30, 2016
2 parents 4c12469 + dbf47cc commit 4d0a877
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions laspy/header.py
Expand Up @@ -1065,9 +1065,9 @@ def update_min_max(self, minmax_mode ="scaled"):
scale=True
elif minmax_mode != "scaled":
scale=False
x = list(self.writer.get_x(scale))
y = list(self.writer.get_y(scale))
z = list(self.writer.get_z(scale))
x = self.writer.get_x(scale)
y = self.writer.get_y(scale)
z = self.writer.get_z(scale)
self.writer.set_header_property("x_max", np.max(x))
self.writer.set_header_property("x_min", np.min(x))
self.writer.set_header_property("y_max", np.max(y))
Expand Down

0 comments on commit 4d0a877

Please sign in to comment.