scivision/catalog/catalog.py
def compatible_models(self, datasource) -> PandasQueryResult:
        """Return all models that are compatible with datasource

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

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

        """
        if isinstance(datasource, str):
            return self._compatible_models(
                self._datasources.set_index("name").loc[datasource]
            )
        else:
            return self._compatible_models(datasource)
Return all models that are compatible with datasource

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

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

        
Return all models that are compatible with datasource
Parameters



Returns

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

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

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

        """
self
datasource