@@ -694,15 +694,19 @@ def get_organism(self, query=None, limit=20, offset=0, filters=None):
694694 params = {"limit" : limit , "offset" : offset , "filters" : filters }
695695 return self ._get_this_service ("organism" , query , params = params )
696696
697+ """
698+ # subservices removed apparatently (march 2023) hence the commented code
699+
697700 def search_protein_class(self, query, limit=20, offset=0):
698701 params = {"limit": limit, "offset": offset}
699702 return self._search("protein_class", query, params=params)
700703
701704 def get_protein_class(self, query=None, limit=20, offset=0, filters=None):
702- """ Protein family classification of TargetComponents"" "
705+ "Protein family classification of TargetComponents"
703706 params = {"limit": limit, "offset": offset, "filters": filters}
704707 return self._get_this_service("protein_class", query, params=params)
705708
709+ """
706710 def get_substructure (self , structure , limit = 20 , offset = 0 , filters = None ):
707711 """Molecule substructure search
708712
@@ -906,10 +910,10 @@ def get_image(self, query, dimensions=500, format="png", save=True, view=True, e
906910 .. todo:: ignorecoords option
907911 """
908912 # NOTE: not async requests here.
909- self .devtools .check_range (dimensions , 1 , 500 )
910- self .devtools .check_param_in_list (engine , ["rdkit" , "indigo" ])
911- self .devtools .check_param_in_list (format , ["png" , "svg" ])
912- queries = self .devtools .to_list (query )
913+ self .services . devtools .check_range (dimensions , 1 , 500 )
914+ self .services . devtools .check_param_in_list (engine , ["rdkit" , "indigo" ])
915+ self .services . devtools .check_param_in_list (format , ["png" , "svg" ])
916+ queries = self .services . devtools .to_list (query )
913917
914918 res = {"filenames" : [], "images" : [], "chemblids" : []}
915919 for query in queries :
0 commit comments