Skip to content

How to identify to which parameter is a value corresponding ? #131

@MilanAssuied

Description

@MilanAssuied

Under the following circumstances:

  • Use of programmatic API (no model from a file, but a model built from the PICT Api)
  • Use of sub-models

It seems that PICT results will be organized in an alternate of parameter between the root model and the sub model.

For instance:

  • Consider I have a main_model and a sub_model
  • We are adding the following parameters in this order:
    • main_model: Param2, 2 values
    • main_model: Param3, 3 values
    • main_models: Param4, 4 values
    • sub_model: Param5, 5 values
    • sub_model: Param6, 6 values
    • sub_model: Param7, 7 values

PICT will return a uint table, which seems to be ordered in the following order:

Param2 Param5, Param3, Param6, Param4, Param7

So a valid result row would be:
1 4 2 5 3 6

Question:

When adding more sub-models, or if nesting one sub-model within one sub-model, and considering some parameters may have the same number of values, how can you identify what is what ?

Note: I did the test several times for two models, and its always an ordered alternation of main model parameter / sub-model parameter, which honestly is a very disturbing choice of ordering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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