Skip to content

Commit 56871ab

Browse files
committed
Drop Array and PyArray wrapped classes
1 parent 726c573 commit 56871ab

File tree

4 files changed

+17
-26
lines changed

4 files changed

+17
-26
lines changed

pdal/__init__.py

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1-
__version__='2.4.2'
2-
1+
from .libpdalpython import (
2+
getDebugInformation,
3+
getDimensions,
4+
getPluginInstallPath,
5+
getSha1,
6+
getVersionMajor,
7+
getVersionMinor,
8+
getVersionPatch,
9+
getVersionString,
10+
)
311
from .pipeline import Pipeline
4-
from .array import Array
5-
from .dimension import dimensions
612

7-
from pdal.libpdalpython import getVersionString, getVersionMajor, getVersionMinor, getVersionPatch, getSha1, getDebugInformation, getPluginInstallPath
13+
14+
__version__ = "2.4.2"
15+
16+
dimensions = getDimensions()
17+
del getDimensions
18+
819

920
class Info(object):
1021
version = getVersionString()
@@ -15,4 +26,5 @@ class Info(object):
1526
sha1 = getSha1()
1627
plugin = getPluginInstallPath()
1728

29+
1830
info = Info()

pdal/array.py

Lines changed: 0 additions & 8 deletions
This file was deleted.

pdal/dimension.py

Lines changed: 0 additions & 6 deletions
This file was deleted.

pdal/libpdalpython.pyx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,6 @@ cdef extern from "PyPipeline.hpp" namespace "pdal::python":
6161
int getLogLevel()
6262
void setLogLevel(int)
6363

64-
cdef class PyArray:
65-
cdef Array *thisptr
66-
def __cinit__(self, np.ndarray array):
67-
self.thisptr = new Array(array)
68-
def __dealloc__(self):
69-
del self.thisptr
70-
7164
cdef extern from "PyDimension.hpp":
7265
ctypedef struct Dimension:
7366
string name;

0 commit comments

Comments
 (0)