(self, stages: Iterable["Stage"])
| 345 | ) |
| 346 | |
| 347 | def update(self, stages: Iterable["Stage"]) -> "Self": |
| 348 | stages = set(stages) |
| 349 | # we remove existing stages with same hashes at first |
| 350 | # and then re-add the new ones later. |
| 351 | stages_set = (set(self.stages) - stages) | stages |
| 352 | return self.__class__( |
| 353 | self.repo, |
| 354 | stages=list(stages_set), |
| 355 | metrics=self._metrics, |
| 356 | plots=self._plots, |
| 357 | params=self._params, |
| 358 | artifacts=self._artifacts, |
| 359 | datasets=self._datasets, |
| 360 | ) |
| 361 | |
| 362 | @classmethod |
| 363 | def from_indexes(cls, repo, idxs: Iterable["Self"]) -> "Self": |
no outgoing calls