Method
__init__
(self, points: list[str], constructions: list[Construction])
Source from the content-addressed store, hash-verified
| 80 | ) |
| 81 | |
| 82 | def __init__(self, points: list[str], constructions: list[Construction]): |
| 83 | self.points = [] |
| 84 | self.nums = [] |
| 85 | |
| 86 | for p in points: |
| 87 | num = None |
| 88 | if isinstance(p, str) and '@' in p: |
| 89 | p, num = p.split('@') |
| 90 | x, y = num.split('_') |
| 91 | num = float(x), float(y) |
| 92 | self.points.append(p) |
| 93 | self.nums.append(num) |
| 94 | |
| 95 | self.constructions = constructions |
| 96 | |
| 97 | def translate(self, mapping: dict[str, str]) -> Clause: |
| 98 | points0 = [] |
Tested by
no test coverage detected