def of_type()

in jetstream/experimenter.py [0:0]


    def of_type(self, type_or_types: str | Iterable[str]) -> "ExperimentCollection":
        if isinstance(type_or_types, str):
            type_or_types = (type_or_types,)
        cls = type(self)
        return cls([ex for ex in self.experiments if ex.type in type_or_types])