znetsixe 086e5fe751 fix: remove bogus machineCurve default that poisoned prediction splines
The schema default for machineCurve.nq had a dummy pressure slice at
key "1" with x=[1..5] y=[10..50]. configUtils.updateConfig deep-merges
defaults into the real config, so this fake slice survived alongside the
real pressure slices (70000, 80000, ..., 390000 Pa). The predict class
then included it in its pressure-dimension spline, pulling all
interpolated y-values toward the dummy data at low pressures and
producing NEGATIVE flow predictions (e.g. -243 m³/h) where the real
curve is strictly positive.

Fix: default to empty objects {nq: {}, np: {}} so the deep merge adds
nothing. The validateMachineCurve function already returns the whole
default if the real curve is missing or invalid, so the empty default
doesn't break the no-curve-data path — it just stops poisoning the
real curve data.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 10:27:59 +02:00
2025-09-22 16:02:04 +02:00
2026-03-31 18:07:57 +02:00
2026-03-31 18:07:57 +02:00
2026-03-11 11:13:05 +01:00
2025-06-10 09:52:44 +02:00

convert

Makes unit conversions

#need to make an index to fetch the helper functions properly without destroying all the links.

Description
No description provided
Readme 1.7 MiB
Languages
JavaScript 100%