From 63d8d81f5e0ab8b81e5771ea591bc05d04118070 Mon Sep 17 00:00:00 2001 From: Andrew Bell Date: Wed, 18 Sep 2019 20:18:40 -0400 Subject: [PATCH] Make sure Shape is initialized. --- VERSION.txt | 2 +- pdal/PyArray.hpp | 2 +- pdal/libpdalpython.pyx | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/VERSION.txt b/VERSION.txt index e3a4f193..fae692e4 100644 --- a/VERSION.txt +++ b/VERSION.txt @@ -1 +1 @@ -2.2.0 \ No newline at end of file +2.2.1 \ No newline at end of file diff --git a/pdal/PyArray.hpp b/pdal/PyArray.hpp index e22e20b5..d77b3d10 100644 --- a/pdal/PyArray.hpp +++ b/pdal/PyArray.hpp @@ -74,7 +74,7 @@ class PDAL_DLL Array Array& operator=(Array const& rhs); Fields m_fields; bool m_rowMajor; - Shape m_shape; + Shape m_shape {}; std::vector> m_iterators; }; diff --git a/pdal/libpdalpython.pyx b/pdal/libpdalpython.pyx index a2f215da..690b0de1 100644 --- a/pdal/libpdalpython.pyx +++ b/pdal/libpdalpython.pyx @@ -106,7 +106,6 @@ cdef class PyPipeline: cdef Array* a if arrays is not None: - print("Looping arrays\n") for array in arrays: a = new Array(array) c_arrays.push_back(a)