Repository navigation
Commit 7d81d4b
committed
Remove optional-constraint toggling and APIs
Remove support for optional/redundant constraints and the related toggling API. Constraint no longer has is_redundant or enabled attributes; add_constraint and add_constraints signatures no longer accept is_redundant/enabled. Deleted add_optional_constraint, add_assumption, set_constraint_enabled, enable_constraint, disable_constraint, and the PymzmConstraintNotInModel exception. Adjusted add_function_call/add_predicate_call to drop redundancy flags and changed Model.generate to include all constraints (removed enabled filtering). Updated tests accordingly and removed the optional-constraints test file.1 parent a6f7fc2 commit 7d81d4b
5 files changed
Lines changed: 8 additions & 152 deletions
File tree
- src/pymzm
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | 97 | | |
100 | 98 | | |
101 | 99 | | |
| |||
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | 111 | | |
117 | 112 | | |
118 | 113 | | |
| |||
121 | 116 | | |
122 | 117 | | |
123 | 118 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 119 | + | |
128 | 120 | | |
129 | 121 | | |
130 | 122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | 152 | | |
164 | 153 | | |
165 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
513 | 513 | | |
514 | 514 | | |
515 | 515 | | |
516 | | - | |
517 | | - | |
518 | 516 | | |
519 | 517 | | |
520 | | - | |
521 | | - | |
522 | 518 | | |
523 | 519 | | |
524 | 520 | | |
525 | 521 | | |
526 | | - | |
527 | | - | |
528 | | - | |
| 522 | + | |
529 | 523 | | |
530 | 524 | | |
531 | 525 | | |
532 | 526 | | |
533 | 527 | | |
534 | 528 | | |
535 | 529 | | |
536 | | - | |
537 | | - | |
538 | | - | |
539 | | - | |
540 | | - | |
541 | | - | |
542 | | - | |
543 | | - | |
544 | | - | |
545 | | - | |
546 | | - | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | | - | |
558 | | - | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | 530 | | |
571 | 531 | | |
572 | 532 | | |
| |||
581 | 541 | | |
582 | 542 | | |
583 | 543 | | |
584 | | - | |
585 | | - | |
586 | 544 | | |
587 | | - | |
588 | 545 | | |
589 | | - | |
| 546 | + | |
590 | 547 | | |
591 | 548 | | |
592 | 549 | | |
| |||
656 | 613 | | |
657 | 614 | | |
658 | 615 | | |
659 | | - | |
| 616 | + | |
660 | 617 | | |
661 | 618 | | |
662 | | - | |
663 | | - | |
| 619 | + | |
664 | 620 | | |
665 | 621 | | |
666 | 622 | | |
667 | 623 | | |
668 | 624 | | |
669 | 625 | | |
670 | | - | |
| 626 | + | |
671 | 627 | | |
672 | 628 | | |
673 | | - | |
| 629 | + | |
674 | 630 | | |
675 | 631 | | |
676 | 632 | | |
| |||
900 | 856 | | |
901 | 857 | | |
902 | 858 | | |
903 | | - | |
904 | | - | |
905 | | - | |
| 859 | + | |
906 | 860 | | |
907 | 861 | | |
908 | 862 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 70 | | |
89 | 71 | | |
90 | 72 | | |
| |||
This file was deleted.
0 commit comments