Skip to content

mdl: export prints one graphical-function warning per array element #861

Closed as not planned

Description

@bpowers

When an arrayed variable has a separate graphical function per element and those functions use discrete or extrapolating interpolation, MDL export prints one warning per element.
It should print one warning per variable, e.g. "graphical function for 40 of the elements of 'demand' uses discrete interpolation; exported as continuous".

Why it matters

Only CLI noise: a variable with thousands of such elements would print thousands of near-identical lines.
No corpus model has a per-element discrete or extrapolating graphical function, so this has not been seen.
The existing step that removes identical warnings does not help, because each message names a different element.

Fix

Count the affected elements per variable and kind in warn_unrepresentable_gf_kinds, and emit one warning per kind.

Pointers

  • src/simlin-engine/src/mdl/writer.rs: warn_unrepresentable_gf_kinds, the Equation::Arrayed loop

Activity

  1. added
    enhancement
    on Jul 7, 2026
  2. changed the title [-]engine: MDL export emits per-element graphical-function warnings one-per-element (should aggregate per variable)[/-] [+]mdl: export prints one graphical-function warning per array element[/+] on Oct 12, 2026
  3. added
    engine
    wontfix
    on Oct 12, 2026
  4. bpowers commented on Oct 12, 2026

    @bpowers
    OwnerAuthor

    Closing as won't fix.

    Cosmetic CLI noise only, never seen: no corpus model has a per-element discrete or extrapolating graphical function (cheap if wanted).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineenhancementwontfix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions