scientific-computing-system 2.2.26 → 2.2.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +13 -6
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -19,6 +19,30 @@ a git tag in this repository or on `origin` (checked with `git ls-remote --tags`
|
|
|
19
19
|
Any retroactive `v2.2.6` or `v2.2.7` tag should point at those commits. This note records
|
|
20
20
|
what the history supports; it does not claim that a tag exists.
|
|
21
21
|
|
|
22
|
+
## [v2.2.28] - 2026-12-04
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- `trapezoid` and `simpson` accumulate with `math.fsum` and apply the step size
|
|
27
|
+
before the sample weights, so large samples no longer overflow and a subnormal
|
|
28
|
+
step or sample is not lost.
|
|
29
|
+
- `romberg` counts both endpoint evaluations in its total evaluation count.
|
|
30
|
+
- `cds integrate` rejects non-finite bounds and non-finite results, and reports
|
|
31
|
+
an `OverflowError` as an error instead of a traceback.
|
|
32
|
+
|
|
33
|
+
## [v2.2.27] - 2026-12-02
|
|
34
|
+
|
|
35
|
+
### Changed
|
|
36
|
+
|
|
37
|
+
- The private Numerical-Recipes helpers re-exported by
|
|
38
|
+
`cds.stats.hypothesis_tests` are resolved lazily through a module-level
|
|
39
|
+
`__getattr__` (PEP 562) instead of unused re-export imports; they stay
|
|
40
|
+
importable from the module, and `cds.stats._distributions` remains their
|
|
41
|
+
single definition site.
|
|
42
|
+
- The generated benchmark report block uses explicit string concatenation and
|
|
43
|
+
the version-lockstep checks use a single import style. Rendered output and
|
|
44
|
+
runtime behavior are unchanged.
|
|
45
|
+
|
|
22
46
|
## [v2.2.26] - 2026-11-28
|
|
23
47
|
|
|
24
48
|
### Fixed
|
package/README.md
CHANGED
|
@@ -43,16 +43,16 @@ The import name is **`cds`** (the distribution is `scientific-computing-system`)
|
|
|
43
43
|
| Channel | Command | What you get |
|
|
44
44
|
|---|---|---|
|
|
45
45
|
| **PyPI** (the library) | `pip install scientific-computing-system` | The actual Python package. Zero runtime dependencies. This is what you want. |
|
|
46
|
-
| **npm** (a launcher shim) | `npm i -g scientific-computing-system` |
|
|
46
|
+
| **npm** (a launcher shim) | `npm i -g scientific-computing-system` | Installs the `scs` command, a thin Node wrapper that runs `python -m cds`. It ships no Python and needs the Python distribution installed so that `python -m cds` resolves. |
|
|
47
47
|
|
|
48
|
-
At the time of writing (2026-
|
|
48
|
+
At the time of writing (2026-12-03), both registries' latest version is 2.2.27,
|
|
49
49
|
but their 2.2.x histories differ and the two channels are **not** equally
|
|
50
50
|
verifiable:
|
|
51
51
|
|
|
52
52
|
- **PyPI** — carries a **PEP 740 provenance attestation** (Sigstore-signed,
|
|
53
53
|
binding the file digest to the publishing workflow). Verified on 2.2.3,
|
|
54
54
|
2.2.4, 2.2.5, 2.2.6, 2.2.8, 2.2.11, 2.2.12, 2.2.13, 2.2.14, 2.2.15 and
|
|
55
|
-
2.2.17 through 2.2.
|
|
55
|
+
2.2.17 through 2.2.27. The 2.2.7 wheel and sdist return 404 from the
|
|
56
56
|
per-file provenance endpoint, so "every release since attestations were
|
|
57
57
|
enabled" would be false; 2.2.16 was never published.
|
|
58
58
|
- **npm** — carries a **Sigstore attestation as of 2.2.3**, minted by npm's
|
|
@@ -60,7 +60,7 @@ verifiable:
|
|
|
60
60
|
and a SLSA provenance v1 bundle for that tarball). 1.0.0 through 2.2.2
|
|
61
61
|
predate the publisher registration and have none, so pin 2.2.3 or newer. npm
|
|
62
62
|
has no 2.2.7, 2.2.8, 2.2.11 or 2.2.16 at all: its 2.2.x line is 2.2.0
|
|
63
|
-
through 2.2.6, 2.2.12 through 2.2.15, and 2.2.17 through 2.2.
|
|
63
|
+
through 2.2.6, 2.2.12 through 2.2.15, and 2.2.17 through 2.2.27, so the
|
|
64
64
|
latest versions match while the histories do not. npm also exposes
|
|
65
65
|
`dist.integrity` (sha512), which is a content pin, not proof of origin, and
|
|
66
66
|
`dist.signatures`, which is npm's registry transport signature, not build
|
|
@@ -180,10 +180,17 @@ The package installs a `cds` command with 13 subcommands:
|
|
|
180
180
|
|
|
181
181
|
```console
|
|
182
182
|
$ cds --version
|
|
183
|
-
System version 2.2.
|
|
183
|
+
System version 2.2.28
|
|
184
184
|
$ cds constants # physical constants table
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
+
`cds integrate` requires finite `--a` and `--b`. Nonfinite results and arithmetic
|
|
188
|
+
overflow are reported as `Error` with exit code 1, not successful integrals.
|
|
189
|
+
The trapezoid and Simpson 1/3 rules scale each weighted contribution before
|
|
190
|
+
streaming it into `math.fsum`, avoiding overflow from an unscaled sum of large
|
|
191
|
+
finite samples. This is not arbitrary-precision integration: grid arithmetic,
|
|
192
|
+
scaled contributions and summation remain limited by floating-point range.
|
|
193
|
+
|
|
187
194
|
## Optional extras
|
|
188
195
|
|
|
189
196
|
The core is zero-dependency. Everything below is opt-in:
|
|
@@ -210,7 +217,7 @@ NumPy or the 2.0 build instead.
|
|
|
210
217
|
## Contributing
|
|
211
218
|
|
|
212
219
|
```bash
|
|
213
|
-
pip install -e ".[test,dev,docs,pandas,plot,property,io]" "hatchling==1.
|
|
220
|
+
pip install -e ".[test,dev,docs,pandas,plot,property,io]" "hatchling==1.33.0"
|
|
214
221
|
pytest # CI also enforces 100% blended coverage (statement + branch)
|
|
215
222
|
mkdocs serve # docs at http://127.0.0.1:8000/
|
|
216
223
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scientific-computing-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.28",
|
|
4
4
|
"description": "Scientific Computing System launcher - a thin Node wrapper that forwards to the pure-Python `cds` CLI. This npm package ships NO Python code: it requires the Python distribution to be installed (`pip install scientific-computing-system`), otherwise `scs` exits non-zero with an actionable message.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|