• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SMTorg / smt / 43585691676
93%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2026 11:25AM UTC
Jobs 1
Files 87
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Nov 2026 10:31AM UTC coverage: 92.389% (-0.5%) from 92.892%
43585691676

push

github

Paul-Saves
Pure-Python RBF and IDW (remove remaining C++/Cython extensions) (#857)

## Summary

Reimplements the RBF and IDW surrogate models in pure Python, following
the approach of #848 for RMTS. Together with #848, this removes the last
C++/Cython extensions, so installing SMT no longer requires a C/C++
compiler.

- Removes `smt/src/rbf/`, `smt/src/idw/`, and the `rbfclib` / `idwclib`
  extensions from `setup.py`.
- Removes remaining Cython build dependencies, docs references, and
  `COMPILED_AVAILABLE` / `compiled_available` guards (`pyproject.toml`,
  `requirements.txt`, `doc/requirements.txt`, `README.md`,
  `getting_started.rst*`, `tutorial/SMT_Tutorial.ipynb`, `run_examples.py`,
  `__init__.py`, `tests_minimal.yml`), and simplifies
  `.github/workflows/build_release.yml` from `cibuildwheel` to a
  pure-Python `pipx run build` workflow.
- Adds `smt/surrogate_models/rbf_idw_backend.py`:
  - **NumPy engine (default):** vectorized, using
    `scipy.spatial.distance.cdist` for pairwise distances. No new
    dependencies.
  - **Numba engine (optional):** parallel, cached kernels, enabled with
    `USE_NUMBA_JIT=1` as in #848. Falls back to NumPy if Numba is not
    installed.
- Normalizes/validates `RBF` `d0` scalars and 1-element arrays across `nx`
  dimensions, and adds IDW distance-underflow fallback to the nearest
  training point in both NumPy and Numba engines.
- The public API is unchanged: same options, outputs, and derivative
  shapes (`predict_values`, `predict_derivatives`,
  `predict_output_derivatives`), and no new options. Models pickled with
  the old extensions still load.

## Verification

- `test_cpp_regression_rbf` and `test_cpp_regression_idw` compare
  against reference outputs captured from the legacy C++ implementation on
  master (`dde28bd2`), hard-coded inline:
  - Coverage: RBF in 1D/2D/5D and IDW in 1D/2D/4D, across several `d0`,
    `poly_degree`, `reg`, and `p` settings, with multiple outputs. Each case
    checks values, derivati... (continued)

144 of 215 new or added lines in 5 files covered. (66.98%)

2 existing lines in 2 files now uncovered.

10270 of 11116 relevant lines covered (92.39%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
71
60.34
smt/surrogate_models/rbf_idw_backend.py

Coverage Regressions

Lines Coverage ∆ File
1
98.15
-0.48% smt/surrogate_models/idw.py
1
99.03
-0.12% smt/surrogate_models/rbf.py
Jobs
ID Job ID Ran Files Coverage
1 Test - 43585691676.1 14 Nov 2026 11:25AM UTC 87
92.39
Source Files on build 43585691676
  • Tree
  • List 87
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 055bcaf0 on github
  • Prev Build on master (#43574273032)
  • Next Build on master (#43591650432)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc