Skip to content

Commit ee10f59

Browse files
committed
refactor: replace api_context.backend.study with openml._backend.study
Signed-off-by: rohansen856 <rohansen856@gmail.com>
1 parent 6b67c1f commit ee10f59

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

openml/study/functions.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import pandas as pd
99
import xmltodict
1010

11+
import openml
1112
import openml._api_calls
1213
import openml.config
1314
import openml.utils
14-
from openml._api import api_context
1515
from openml.study.study import OpenMLBenchmarkSuite, OpenMLStudy
1616

1717
if TYPE_CHECKING:
@@ -338,7 +338,7 @@ def delete_study(study_id: int) -> bool:
338338
bool
339339
True iff the deletion was successful. False otherwise
340340
"""
341-
result: bool = api_context.backend.study.delete(study_id)
341+
result: bool = openml._backend.study.delete(study_id)
342342
return result
343343

344344

@@ -468,7 +468,7 @@ def list_suites(
468468
- creation_date
469469
"""
470470
listing_call = partial(
471-
api_context.backend.study.list,
471+
openml._backend.study.list,
472472
main_entity_type="task",
473473
status=status,
474474
uploader=uploader,
@@ -519,7 +519,7 @@ def list_studies(
519519
these are also returned.
520520
"""
521521
listing_call = partial(
522-
api_context.backend.study.list,
522+
openml._backend.study.list,
523523
main_entity_type="run",
524524
status=status,
525525
uploader=uploader,

0 commit comments

Comments
 (0)