Comments (4)
This issue is not related to #20619, since it is not related to concurrency. However, I can reproduce it, which implies that some other kind of error is occurring, I can further investigate this one.
from scipy.
In the interpolate
case, the LinearNDInterpolator
is using the qhull.Delaunay
in its initializer.
scipy/scipy/interpolate/interpnd.pyx
Lines 329 to 330 in 4a537b7
In the latest code, I have confirmed that using the code reported in this issue does not cause a segmentation fault, thanks to the validation introduced in PR #20633:
In [1]: import numpy as np
In [2]: from scipy.interpolate import LinearNDInterpolator
In [3]: LinearNDInterpolator(np.random.randn(4, 10, 3), np.random.randn(10))
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[3], line 1
----> 1 LinearNDInterpolator(np.random.randn(4, 10, 3), np.random.randn(10))
File interpnd.pyx:326, in scipy.interpolate.interpnd.LinearNDInterpolator.__init__()
File interpnd.pyx:92, in scipy.interpolate.interpnd.NDInterpolatorBase.__init__()
File interpnd.pyx:330, in scipy.interpolate.interpnd.LinearNDInterpolator._calculate_triangulation()
File _qhull.pyx:1808, in scipy.spatial._qhull.Delaunay.__init__()
ValueError: Input points array must have 2 dimensions.
So, I think we can close this issue.
from scipy.
I see Qhull and segfault - @andfoy related to gh-20619, maybe?
from scipy.
As the cross-linked PR indicates, we just need to error out for the spatial
cases since those are invalid inputs. I didn't touch the interpolate
case, though it may or may not benefit from my patch if it passes through the same code path (didn't check).
from scipy.
Related Issues (20)
- Failures for new `pytest-fail-slow` check in Windows CI jobs HOT 7
- TST: my local test failures HOT 14
- BUG: ``optimize.nnls`` sometimes fails when input ``A`` is a Fortran order array HOT 4
- BUG: sparse.csgraph.minimum_spanning_tree: 64bit indices unsupported
- BUG: stats.levy_stable.rvs() ignores "S0"-parameterization
- BUG: SLSQP Inequality constraints incompatible when no constraints are present or constraints are respected HOT 7
- BUG: Numerically incorrect `scipy.signal.savgol_coeffs` (also affects `scipy.signal.savgol_filter`) HOT 4
- ENH: Add option to pass a single function to compute fun and jac in scipy.optimize.least_squares HOT 5
- query: scipy.signal.ShortTimeFFT import does not work HOT 1
- BUG: special.fdtri: inaccurate results for extreme arguments (exposed via scipy.stats.f.ppf) HOT 2
- DOC: Discourse release notes character limit HOT 2
- BUG: first shared library in scipy fails to be consumed by MSVC HOT 1
- BUG: sparse: testcase test_array_api_deprecations fails on Ubuntu 22.04 HOT 1
- DOC: update testing docs for alternative backends HOT 5
- ENH: sparse.csr_matrix: parallelize dot product HOT 1
- BUG: signal.iirfilter: returns NaNs
- MAINT/DEV: improve command line clarity of `dev.py` HOT 1
- DOC: stats.bootstrap: improve documentation multidimensional input HOT 12
- BUG: Library not loaded: @rpath/libgfortran.5.dylib for scipy v1.14.0rc1 x86 macos wheels HOT 6
- TYP: `_lib.doccer`: add type annotations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scipy.