(self, r)
| 229 | |
| 230 | class RemoveRandomPoints: |
| 231 | def __init__(self, r): |
| 232 | if type(r) is list or type(r) is tuple: |
| 233 | assert len(r) == 2 |
| 234 | assert 0 <= r[0] <= 1 |
| 235 | assert 0 <= r[1] <= 1 |
| 236 | self.r_min = float(r[0]) |
| 237 | self.r_max = float(r[1]) |
| 238 | else: |
| 239 | assert 0 <= r <= 1 |
| 240 | self.r_min = None |
| 241 | self.r_max = float(r) |
| 242 | |
| 243 | def __call__(self, e): |
| 244 | n = len(e) |
nothing calls this directly
no outgoing calls
no test coverage detected