From 50c28d735965b6bddf6be8189ce3b365ef92296c Mon Sep 17 00:00:00 2001 From: Thomas S Date: Tue, 28 Jan 2025 18:00:07 +0100 Subject: [PATCH] Fix examples to use Project constructor instead of open --- examples/getting_started/plot_quick_start.py | 2 +- examples/getting_started/plot_skore_getting_started.py | 2 +- examples/model_evaluation/plot_cross_validate.py | 2 +- examples/skore_project/plot_tracking_items.py | 2 +- examples/skore_project/plot_working_with_projects.py | 2 +- examples/use_cases/plot_employee_salaries.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/getting_started/plot_quick_start.py b/examples/getting_started/plot_quick_start.py index b0a7a55f4..96735aff1 100644 --- a/examples/getting_started/plot_quick_start.py +++ b/examples/getting_started/plot_quick_start.py @@ -21,7 +21,7 @@ temp_dir_path = Path(temp_dir.name) os.chdir(temp_dir_path) # sphinx_gallery_end_ignore -my_project = skore.open("my_project", create=True) +my_project = skore.Project("my_project") # %% # This will create a skore project directory named ``my_project.skore`` in your diff --git a/examples/getting_started/plot_skore_getting_started.py b/examples/getting_started/plot_skore_getting_started.py index 1cab1038c..f7fcd2e1b 100644 --- a/examples/getting_started/plot_skore_getting_started.py +++ b/examples/getting_started/plot_skore_getting_started.py @@ -49,7 +49,7 @@ temp_dir_path = Path(temp_dir.name) os.chdir(temp_dir_path) # sphinx_gallery_end_ignore -my_project = skore.open("my_project", create=True) +my_project = skore.Project("my_project") # %% # Now that the project exists, we can write some Python code (in the same diff --git a/examples/model_evaluation/plot_cross_validate.py b/examples/model_evaluation/plot_cross_validate.py index aa5dc5c11..8a15bbda5 100644 --- a/examples/model_evaluation/plot_cross_validate.py +++ b/examples/model_evaluation/plot_cross_validate.py @@ -31,7 +31,7 @@ temp_dir_path = Path(temp_dir.name) os.chdir(temp_dir_path) # sphinx_gallery_end_ignore -my_project = skore.open("my_project", create=True) +my_project = skore.Project("my_project") # %% diff --git a/examples/skore_project/plot_tracking_items.py b/examples/skore_project/plot_tracking_items.py index 818afd2a9..f0098ffb7 100644 --- a/examples/skore_project/plot_tracking_items.py +++ b/examples/skore_project/plot_tracking_items.py @@ -29,7 +29,7 @@ os.chdir(temp_dir_path) # sphinx_gallery_end_ignore -my_project = skore.open("my_project", create=True) +my_project = skore.Project("my_project") # %% # Tracking an integer diff --git a/examples/skore_project/plot_working_with_projects.py b/examples/skore_project/plot_working_with_projects.py index 4861f266d..79ba19caf 100644 --- a/examples/skore_project/plot_working_with_projects.py +++ b/examples/skore_project/plot_working_with_projects.py @@ -26,7 +26,7 @@ temp_dir_path = Path(temp_dir.name) os.chdir(temp_dir_path) # sphinx_gallery_end_ignore -my_project = skore.open("my_project", create=True) +my_project = skore.Project("my_project") # %% # Storing integers diff --git a/examples/use_cases/plot_employee_salaries.py b/examples/use_cases/plot_employee_salaries.py index dd083e7ab..95048ea00 100644 --- a/examples/use_cases/plot_employee_salaries.py +++ b/examples/use_cases/plot_employee_salaries.py @@ -37,7 +37,7 @@ temp_dir_path = Path(temp_dir.name) os.chdir(temp_dir_path) # sphinx_gallery_end_ignore -my_project = skore.open("my_project", create=True) +my_project = skore.Project("my_project") # %% #