Commit 4e6267d
committed
Resolve existing features as booleans for Slurm constraints
Directly evaluating Slurm feature as symbols (with dash replaced) won't work
for features like `8xT4` which are valid to Slurm. This commit directly inserts
those existence of features as booleans. `re.sub` should avoid potentially
overlapping matches.1 parent 68a4edb commit 4e6267d
1 file changed
+11
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | 735 | | |
742 | 736 | | |
743 | | - | |
744 | | - | |
745 | | - | |
746 | | - | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
747 | 741 | | |
748 | 742 | | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
758 | 749 | | |
759 | | - | |
| 750 | + | |
760 | 751 | | |
761 | 752 | | |
762 | 753 | | |
| |||
0 commit comments