Skip to content

Strict parameter mode concept #346

@MichaelSchoenfelder-SiV

Description

@MichaelSchoenfelder-SiV

Problem: simulators usually define a default value for parameters. These default values are almost always wrong for a mature simulator. It would be nice if sparta could complain about important parameters that aren't defined, but yet still run with defaults. (It may do this already.)

Deeper problem: "complaining" via a warning in the log is nice, but people don't often look at those logs. In production cases (running thousands of simulations), I'd like to fail soon and fail hard rather than warn.

Suggestion: implement the concept of "strict" mode or -Werror to force a sparta-based simulator to assert for parameters that aren't defined. I am not sure if we want this for all params, or to make this a property of a parameter. In other words, by default params are happy assuming a default, but one can set a property on a parameter to assert if not defined when in the "strict" mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: spartaIssue is related to sparta frameworkenhancementEnhancement or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions