Skip to content

Commit a63fdce

Browse files
committed
Fix deprecation warnings
1 parent 5dff76e commit a63fdce

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pdal/plang/Invocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ int argCount(PyObject *function)
5353
// Owned by module.
5454
PyObject *dictionary = PyModule_GetDict(module);
5555
// Owned by dictionary.
56-
PyObject *getargFunc = PyDict_GetItemString(dictionary, "getargspec");
56+
PyObject *getargFunc = PyDict_GetItemString(dictionary, "getfullargspec");
5757

5858
// New object.
5959
PyObject *inArgs = PyTuple_New(1);

test/test_pipeline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def test_read_arrays(self):
352352
z_vals = [1.5, 3.5, 5.5, 7.5, 9.5]
353353
test_data = np.array(
354354
[(x, y, z) for x, y, z in zip(x_vals, y_vals, z_vals)],
355-
dtype=[("X", np.float), ("Y", np.float), ("Z", np.float)],
355+
dtype=[("X", float), ("Y", float), ("Z", float)],
356356
)
357357

358358
pipeline = """
@@ -379,7 +379,7 @@ def test_reference_counting(self):
379379
z_vals = [1.5, 3.5, 5.5, 7.5, 9.5]
380380
test_data = np.array(
381381
[(x, y, z) for x, y, z in zip(x_vals, y_vals, z_vals)],
382-
dtype=[("X", np.float), ("Y", np.float), ("Z", np.float)],
382+
dtype=[("X", float), ("Y", float), ("Z", float)],
383383
)
384384

385385
pipeline = """

0 commit comments

Comments
 (0)