@@ -53,8 +53,8 @@ def add_predictions(
5353 return MEAPredictionImport .create_from_file (
5454 path = str (predictions ), ** kwargs )
5555 else :
56- return MEAPredictionImport .create_from_url (url = str ( predictions ),
57- ** kwargs )
56+ return MEAPredictionImport .create_from_url (
57+ url = str ( predictions ), ** kwargs )
5858 elif isinstance (predictions , Iterable ):
5959 return MEAPredictionImport .create_from_objects (
6060 predictions = predictions , ** kwargs )
@@ -82,12 +82,8 @@ def delete_model_run(self):
8282 """
8383 ids_param = "ids"
8484 query_str = """mutation DeleteModelRunPyApi($%s: ID!) {
85- deleteModelRuns(where: {ids: [$%s]})}""" % (
86- ids_param , ids_param
87- )
88- self .client .execute (query_str , {
89- ids_param : str (self .uid )
90- })
85+ deleteModelRuns(where: {ids: [$%s]})}""" % (ids_param , ids_param )
86+ self .client .execute (query_str , {ids_param : str (self .uid )})
9187
9288 def delete_annotation_groups (self , data_row_ids ):
9389 """ Deletes annotation groups by data row ids for a model run.
@@ -101,8 +97,8 @@ def delete_annotation_groups(self, data_row_ids):
10197 data_row_ids_param = "dataRowIds"
10298 query_str = """mutation DeleteModelRunDataRowsPyApi($%s: ID!, $%s: [ID!]!) {
10399 deleteModelRunDataRows(where: {modelRunId: $%s, dataRowIds: $%s})}""" % (
104- model_run_id_param , data_row_ids_param , model_run_id_param , data_row_ids_param
105- )
100+ model_run_id_param , data_row_ids_param , model_run_id_param ,
101+ data_row_ids_param )
106102 self .client .execute (query_str , {
107103 model_run_id_param : self .uid ,
108104 data_row_ids_param : data_row_ids
@@ -123,4 +119,3 @@ def url(self):
123119 app_url = self .client .app_url
124120 endpoint = f"{ app_url } /models/{ self .model_id } /{ self .model_run_id } /AllDatarowsSlice/{ self .uid } ?view=carousel"
125121 return endpoint
126-
0 commit comments