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

SMTorg / smt / 43574273032
93%

Build:
DEFAULT BRANCH: master
Ran 14 Nov 2026 09:00AM UTC
Jobs 1
Files 86
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 08:07AM UTC coverage: 92.892% (+0.7%) from 92.153%
43574273032

push

github

web-flow
Reimplement RMTS in Python instead of C++ (#848)

## Summary

Pure-Python reimplementation of **RMTS** (Regularized Minimal-energy
Tensor-product Splines). It merges `RMTB` and `RMTC` into a single
`RMTS(spline_type=...)` model and removes the legacy C++/Cython
extension entirely.

Fixes #573, fixes #846, and stays fully compatible with #845 (RMTBUQ).

cc @hwangjt 

## Key Changes

- **No more C++ dependency**: deletes `smt/src/rmts/` (9 files:
`rmtb.cpp`, `rmtb.hpp`, `rmtc.cpp`, `rmtc.hpp`, `rmts.cpp`, `rmts.hpp`,
`rmtsclib.pyx`, `utils.cpp`, `utils.hpp`) and the `rmtsclib` build
rules. No C/C++ compiler is needed on Windows, macOS (incl. Apple
Silicon) or Linux.
- **Unified API**: `RMTS(spline_type="B-Spline" |
"Cubic_Hermite_Spline")` replaces the separate `rmtb.py` / `rmtc.py`
modules. `RMTB` and
`RMTC` stay available as deprecated wrappers that emit a
`FutureWarning`.
- **Multi-engine backend** (`smt/surrogate_models/rmts_backend.py`):
1. **NumPy/SciPy** (default): vectorized and needs no extra dependency.
2. **Numba JIT** (optional): lazy-imported, multithreaded via `prange`,
with disk caching. It is enabled through `USE_NUMBA_JIT`.
3. **JAX** (optional): differentiable evaluation (`predict_rmtb_jax`,
`predict_rmtc_jax`) that supports `jax.grad`, `jax.jacfwd`,
`jax.vmap` and `jax.jit`.
- **Fixes #573**: correct knot/element indexing at domain boundaries, so
derivatives are no longer clamped there.
- **Fixes #846**: new `get_bspline()` and `to_scipy()` export trained
models to `scipy.interpolate.BSpline` (1D) / `NdBSpline` (nD). This
requires `scipy>=1.12.0`.
- **Solver robustness**: the Newton increment is reset before each
iterative linear solve, `KrylovSolver` is guarded against a zero
initial residual, and SciPy `gmres` now gets explicit `atol` /
`callback_type`.
- **Migration**: internal tests, examples, docs (`rmts.rst`) and
applications (`moe.py`, `vfm.py`, `application.py`, `run_examples.py`)
now use `RMTS(spline_type=...)`.

## Numerical... (continued)

1160 of 1176 new or added lines in 7 files covered. (98.64%)

10193 of 10973 relevant lines covered (92.89%)

0.93 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
98.62
smt/surrogate_models/rmts_backend.py
3
98.96
2.37% smt/surrogate_models/rmts.py
Jobs
ID Job ID Ran Files Coverage
1 Test - 43574273032.1 14 Nov 2026 09:01AM UTC 86
92.89
Source Files on build 43574273032
  • Tree
  • List 86
  • Changed 8
  • Source Changed 0
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e1009bea on github
  • Prev Build on master (#43302113856)
  • Next Build on master (#43586126121)
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