scivision/catalog/catalog.py
def compatible_datasources(self, model) -> PandasQueryResult:
        """Return all datasources that are compatible with model

        Parameters
        ----------
        model : str or dict-like
            Any dictionary-like (including CatalogModelEntry) that has
            keys 'format', 'tasks' and 'labels_required', representing
            these properties of the model.
            If a string is passed, this is used to look up the model (in `self._models`).

        Returns
        -------
        result: QueryResult
            A QueryResult instance containing the datasources compatible with
            the given model (convertible to a dict or pd.DataFrame).

        """
        if isinstance(model, str):
            return self._compatible_datasources(
                self._models.set_index("name").loc[model]
            )
        else:
            return self._compatible_datasources(model)
Return all datasources that are compatible with model

        Parameters
        ----------
        model : str or dict-like
            Any dictionary-like (including CatalogModelEntry) that has
            keys 'format', 'tasks' and 'labels_required', representing
            these properties of the model.
            If a string is passed, this is used to look up the model (in `self._models`).

        Returns
        -------
        result: QueryResult
            A QueryResult instance containing the datasources compatible with
            the given model (convertible to a dict or pd.DataFrame).

        
Return all datasources that are compatible with model
Parameters



Returns

QueryResult
A QueryResult instance containing the datasources compatible with
the given model (convertible to a dict or pd.DataFrame).
Return all datasources that are compatible with model Parameters Returns QueryResult A QueryResult instance containing the datasources compatible with the given model ( convertible to a dict or pd . DataFrame ) .
def compatible_datasources(self, model) -> PandasQueryResult:
        if isinstance(model, str):
            return self._compatible_datasources(
                self._models.set_index("name").loc[model]
            )
        else:
            return self._compatible_datasources(model)
def compatible_datasources ( self , model ) -> PandasQueryResult : if isinstance ( model , str ) : return self . _compatible_datasources ( self . _models . set_index ( "name" ) . loc [ model ] ) else : return self . _compatible_datasources ( model )
Return all datasources that are compatible with model
Parameters
Return all datasources that are compatible with model Parameters
"""Return all datasources that are compatible with model

        Parameters
        ----------
        model : str or dict-like
            Any dictionary-like (including CatalogModelEntry) that has
            keys 'format', 'tasks' and 'labels_required', representing
            these properties of the model.
            If a string is passed, this is used to look up the model (in `self._models`).

        Returns
        -------
        result: QueryResult
            A QueryResult instance containing the datasources compatible with
            the given model (convertible to a dict or pd.DataFrame).

        """
self
model