This repository was archived by the owner on Aug 25, 2024. It is now read-only.
Commit d57f427
committed
df: input flow: Add get_alternate_definitions helper function
We had a lack of clarity around what was going on with alternate
definitions in commit 8657032. There
were several if statements where we are looping through the origins
and if the origin is a dict, we check if the value is a tuple or a list.
If it is not, the key is the operation instance name and the value is
the output name for that operation instance.
If it is, the key is the origin and the value is the list or tuple of
definition names which are acceptable alternate definitions when the
input is coming from that origin.
This patch adds a helper method to make that more clear.
Signed-off-by: John Andersen <[email protected]>1 parent 9f286de commit d57f427
2 files changed
+49
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
499 | 497 | | |
500 | 498 | | |
501 | 499 | | |
| |||
547 | 545 | | |
548 | 546 | | |
549 | 547 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
556 | 552 | | |
557 | 553 | | |
558 | 554 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
429 | 429 | | |
430 | 430 | | |
431 | 431 | | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
432 | 467 | | |
433 | 468 | | |
434 | 469 | | |
| |||
600 | 635 | | |
601 | 636 | | |
602 | 637 | | |
603 | | - | |
604 | | - | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
605 | 641 | | |
606 | 642 | | |
607 | 643 | | |
| |||
623 | 659 | | |
624 | 660 | | |
625 | 661 | | |
626 | | - | |
627 | | - | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
628 | 665 | | |
629 | 666 | | |
630 | 667 | | |
| |||
0 commit comments