Skip to content

Commit 3238d51

Browse files
committed
prepare 2.2.0
1 parent 5cc7204 commit 3238d51

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def get_pdal_config(option):
156156
if os.name != 'nt':
157157
extra_compile_args += ['-g','-O0']
158158

159-
# readers.numpy doesn't exist until PDAL 1.8
160-
if PDALVERSION is not None and PDALVERSION >= Version('1.8'):
161-
libraries.append('pdal_plugin_reader_numpy')
159+
if PDALVERSION < Version('2.0.0'):
160+
raise Exception("PDAL version '%s' is not compatible with PDAL Python library version '%s'"%(PDALVERSION, module_version))
161+
162162

163163
if os.name in ['nt']:
164164
if os.environ.get('OSGEO4W_ROOT'):
@@ -168,8 +168,6 @@ def get_pdal_config(option):
168168
library_dirs = ['%s\Library\lib' % prefix]
169169

170170
libraries = ['pdalcpp','pdal_util','ws2_32']
171-
if PDALVERSION >= Version('1.8'):
172-
libraries.append('libpdal_plugin_reader_numpy')
173171

174172
extra_compile_args = ['/DNOMINMAX',]
175173

test/test_pipeline.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,30 @@ def fetch_json(self, filename):
3131
return output
3232

3333
class TestPipeline(PDALTest):
34-
#
34+
3535
@unittest.skipUnless(os.path.exists(os.path.join(DATADIRECTORY, 'sort.json')),
3636
"missing test data")
3737
def test_construction(self):
3838
"""Can we construct a PDAL pipeline"""
3939
json = self.fetch_json('sort.json')
4040
r = pdal.Pipeline(json)
41-
#
41+
4242
@unittest.skipUnless(os.path.exists(os.path.join(DATADIRECTORY, 'sort.json')),
4343
"missing test data")
4444
def test_execution(self):
4545
"""Can we execute a PDAL pipeline"""
4646
x = self.fetch_json('sort.json')
4747
r = pdal.Pipeline(x)
48-
# r.validate()
48+
r.validate()
4949
r.execute()
5050
self.assertGreater(len(r.pipeline), 200)
51-
#
51+
5252
def test_validate(self):
5353
"""Do we complain with bad pipelines"""
5454
r = pdal.Pipeline(bad_json)
5555
with self.assertRaises(RuntimeError):
5656
r.validate()
57-
#
57+
5858
@unittest.skipUnless(os.path.exists(os.path.join(DATADIRECTORY, 'sort.json')),
5959
"missing test data")
6060
def test_array(self):
@@ -69,7 +69,7 @@ def test_array(self):
6969
a = arrays[0]
7070
self.assertAlmostEqual(a[0][0], 635619.85, 7)
7171
self.assertAlmostEqual(a[1064][2], 456.92, 7)
72-
#
72+
7373
@unittest.skipUnless(os.path.exists(os.path.join(DATADIRECTORY, 'sort.json')),
7474
"missing test data")
7575
def test_metadata(self):
@@ -82,8 +82,8 @@ def test_metadata(self):
8282
import json
8383
j = json.loads(metadata)
8484
self.assertEqual(j["metadata"]["readers.las"][0]["count"], 1065)
85-
#
86-
#
85+
86+
8787
@unittest.skipUnless(os.path.exists(os.path.join(DATADIRECTORY, 'sort.json')),
8888
"missing test data")
8989
def test_no_execute(self):
@@ -114,7 +114,7 @@ def test_schema(self):
114114
r.validate()
115115
r.execute()
116116
self.assertEqual(r.schema['schema']['dimensions'][0]['name'], 'X')
117-
#
117+
118118
@unittest.skipUnless(os.path.exists(os.path.join(DATADIRECTORY, 'chip.json')),
119119
"missing test data")
120120
def test_merged_arrays(self):
@@ -125,7 +125,7 @@ def test_merged_arrays(self):
125125
r.execute()
126126
arrays = r.arrays
127127
self.assertEqual(len(arrays), 43)
128-
#
128+
129129

130130
class TestArrayLoad(PDALTest):
131131

0 commit comments

Comments
 (0)