osmose.config.multivalue¶
Multi-value (per-stage array) config entries, recognised the way the engine parses them.
Which separators make an array depends on the KEY, not just the value:
;marks an array on any key (the config writer round-trips it, and every array-capable engine parser accepts it).,marks an array only on fields flaggedarray=Truein the schema: the ones the engine reads with_parse_floats(re.split(r"[;,]")), i.e. size ratios and stage thresholds. EEC full writes “2.3;1.8”, Benguela “15, 5”; both are two-stage values. On any other key a ‘,’ is not a separator (the engine reads it withfloat()and fails), so “0,2” on a scalar key is a decimal-comma typo that the validator must keep reporting.
Every place that handles config values outside the engine (the validator, the form tabs, the species and resource tables, the sync guard, the Advanced editor) must use this one test, or an array is validated as one bad number, or flattened to a single value the engine then refuses.
Functions
|
True when the engine would split |
|
The parts of a multi-value entry of |