Skip to content

Commit ec4521a

Browse files
committed
Move json import out of libpdalpython.pyx
1 parent 9383e27 commit ec4521a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

pdal/libpdalpython.pyx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# distutils: language = c++
22
# cython: c_string_type=unicode, c_string_encoding=utf8
33

4-
import json
54
from types import SimpleNamespace
65

76
from cython.operator cimport dereference as deref
@@ -159,7 +158,7 @@ cdef class Pipeline:
159158

160159
@property
161160
def schema(self):
162-
return json.loads(self._get_executor().getSchema())
161+
return self._get_executor().getSchema()
163162

164163
@property
165164
def pipeline(self):

pdal/pipeline.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def __init__(
4242
def stages(self) -> List[Stage]:
4343
return list(self._stages)
4444

45+
@property
46+
def schema(self) -> Any:
47+
return json.loads(super().schema)
48+
4549
@property
4650
def loglevel(self) -> int:
4751
return LogLevelFromPDAL[super().loglevel]

0 commit comments

Comments
 (0)