@@ -234,7 +234,7 @@ def __list_evaluations(
234
234
# Minimalistic check if the XML is useful
235
235
if "oml:evaluations" not in evals_dict :
236
236
raise ValueError (
237
- " Error in return XML, does not contain " f' "oml:evaluations": { evals_dict !s} ' ,
237
+ f' Error in return XML, does not contain "oml:evaluations": { evals_dict !s} ' ,
238
238
)
239
239
240
240
assert isinstance (evals_dict ["oml:evaluations" ]["oml:evaluation" ], list ), type (
@@ -321,9 +321,9 @@ def list_evaluation_measures() -> list[str]:
321
321
qualities = xmltodict .parse (xml_string , force_list = ("oml:measures" ))
322
322
# Minimalistic check if the XML is useful
323
323
if "oml:evaluation_measures" not in qualities :
324
- raise ValueError (" Error in return XML, does not contain " ' "oml:evaluation_measures"' )
324
+ raise ValueError (' Error in return XML, does not contain "oml:evaluation_measures"' )
325
325
if not isinstance (qualities ["oml:evaluation_measures" ]["oml:measures" ][0 ]["oml:measure" ], list ):
326
- raise TypeError (" Error in return XML, does not contain " ' "oml:measure" as a list' )
326
+ raise TypeError (' Error in return XML, does not contain "oml:measure" as a list' )
327
327
return qualities ["oml:evaluation_measures" ]["oml:measures" ][0 ]["oml:measure" ]
328
328
329
329
@@ -343,13 +343,13 @@ def list_estimation_procedures() -> list[str]:
343
343
344
344
# Minimalistic check if the XML is useful
345
345
if "oml:estimationprocedures" not in api_results :
346
- raise ValueError (" Error in return XML, does not contain " ' "oml:estimationprocedures"' )
346
+ raise ValueError (' Error in return XML, does not contain "oml:estimationprocedures"' )
347
347
if "oml:estimationprocedure" not in api_results ["oml:estimationprocedures" ]:
348
- raise ValueError (" Error in return XML, does not contain " ' "oml:estimationprocedure"' )
348
+ raise ValueError (' Error in return XML, does not contain "oml:estimationprocedure"' )
349
349
350
350
if not isinstance (api_results ["oml:estimationprocedures" ]["oml:estimationprocedure" ], list ):
351
351
raise TypeError (
352
- " Error in return XML, does not contain " ' "oml:estimationprocedure" as a list' ,
352
+ ' Error in return XML, does not contain "oml:estimationprocedure" as a list' ,
353
353
)
354
354
355
355
return [
@@ -415,7 +415,7 @@ def list_evaluations_setups(
415
415
"""
416
416
if parameters_in_separate_columns and (flows is None or len (flows ) != 1 ):
417
417
raise ValueError (
418
- "Can set parameters_in_separate_columns to true " " only for single flow_id" ,
418
+ "Can set parameters_in_separate_columns to true only for single flow_id" ,
419
419
)
420
420
421
421
# List evaluations
0 commit comments