Compare commits
1 Commits
2aa7f88f03
...
0038a8c2c2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0038a8c2c2 |
@@ -17,6 +17,10 @@ function applyBoundsAndTargets(m) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function validateFlowBounds(m) {
|
function validateFlowBounds(m) {
|
||||||
|
// nominalFlowMin / flowMax must be declared in monster.json's `constraints`
|
||||||
|
// section. If they aren't, configUtils strips them as unknown keys and the
|
||||||
|
// bounds collapse to undefined → NaN → invalid here, which silently blocks
|
||||||
|
// every sampling run. (Fixed 2026-05-11.)
|
||||||
const min = Number(m.nominalFlowMin);
|
const min = Number(m.nominalFlowMin);
|
||||||
const max = Number(m.flowMax);
|
const max = Number(m.flowMax);
|
||||||
const valid = Number.isFinite(min) && Number.isFinite(max) && min >= 0 && max > 0 && min < max;
|
const valid = Number.isFinite(min) && Number.isFinite(max) && min >= 0 && max > 0 && min < max;
|
||||||
|
|||||||
Reference in New Issue
Block a user