Skip to content

Allow optional data to be passed into model / support runtime switching #311

Description

@r-ash

If you want to provide some input to the model which is only optionally used, at the moment, there are two ways:

  1. Create a model variant which takes the input data
  2. When the input is not being used, provide some dummy data otherwise leapfrog will error

Doing 2 is quite annoying but 1 can be a bit heavyweight for a small switch. This came up with adding transmission input, this was only a few new inputs and ones which we want to every model variant to be able to optionally use, which would end up with a huge proliferation of variants. It would be better if this was a runtime switch and leapfrog could support non-required inputs. How can we support this?

After we do this we should update #310

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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