Skip to content

Commit

Permalink
Update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianJacta committed Oct 12, 2023
1 parent e100e40 commit 520bd4f
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

Taipy offers a way to compare data nodes across scenarios by including a function directly in the configuration of the scenario.

## Step 1: The first step consists in declaring on which data nodes to apply the comparison functions:
# Comparing scenarios

**Step 1:** Declare data nodes on which the comparison functions are applied.

In this example, we want to apply a comparison to the '_output_' Data Node. It is indicated in the comparators parameter of the `configure_scenario`.

Expand All @@ -18,7 +20,8 @@ scenario_cfg = Config.configure_scenario(id="multiply_scenario",
second_task_cfg],
comparators={output_data_node_cfg.id: compare_function},)
```
## Step 2: Implement the comparison function (`compare_function()`) used above.

**Step 2:** Implement the comparison function (`compare_function()`) used above.

_data_node_results_ is the list of the Output Data Nodes from all scenarios passed in the comparator. We iterate through it to compare scenarios.

Expand Down

0 comments on commit 520bd4f

Please sign in to comment.