Skip to content

Commit

Permalink
pin to numpy < 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Sep 17, 2024
1 parent 9b8199f commit 17d9b16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ channels:
- conda-forge
dependencies:
- scikit-build-core
- numpy
- numpy < 2.1
- pdal
- compilers
- python
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fail-fast: true
matrix:
os: ['ubuntu-latest', 'macos-latest', 'windows-latest']
python-version: ['3.9', '3.10', '3.11', '3.12']
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']

steps:
- name: Check out
Expand Down
2 changes: 2 additions & 0 deletions src/pdal/io/NumpyReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ PyArrayObject* load_npy_file(std::string const& filename)
{

PyObject *py_filename = PyUnicode_FromString(filename.c_str());
if (!py_filename)
throw pdal::pdal_error(plang::getTraceback());
PyObject *numpy_module = PyImport_ImportModule("numpy");
if (!numpy_module)
throw pdal::pdal_error(plang::getTraceback());
Expand Down

0 comments on commit 17d9b16

Please sign in to comment.