Skip to content

Commit 40f924c

Browse files
committed
feat(skore-local-project): Remove run_id
1 parent d722a30 commit 40f924c

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

skore-local-project/src/skore_local_project/metadata.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ class ReportMetadata(ABC):
5151
ID of the artifact in the artifacts storage.
5252
project_name : str
5353
The name of the project the metadata should be associated with.
54-
run_id : str
55-
The run the metadata should be associated with.
5654
date : str
5755
The date the metadata were created.
5856
key : str
@@ -71,7 +69,6 @@ class ReportMetadata(ABC):
7169

7270
artifact_id: str
7371
project_name: str
74-
run_id: str
7572
key: str
7673
date: str = field(init=False)
7774
learner: str = field(init=False)

skore-local-project/src/skore_local_project/project.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
class Metadata(TypedDict): # noqa: D101
2525
id: str
26-
run_id: str
2726
key: str
2827
date: str
2928
learner: str
@@ -86,8 +85,6 @@ class Project:
8685
- on Windows, usually ``C:\Users\%USER%\AppData\Local\skore``,
8786
- on Linux, usually ``${HOME}/.cache/skore``,
8887
- on macOS, usually ``${HOME}/Library/Caches/skore``.
89-
run_id : str
90-
The current run identifier of the project.
9188
"""
9289

9390
@staticmethod
@@ -142,7 +139,6 @@ def __init__(self, name: str, *, workspace: Path | None = None):
142139
workspace, projects, metadata, artifacts = Project.__setup_diskcache(workspace)
143140

144141
self.__name = name
145-
self.__run_id = uuid4().hex
146142
self.__workspace = workspace
147143
self.__projects_storage = projects
148144
self.__metadata_storage = metadata
@@ -156,11 +152,6 @@ def name(self) -> str:
156152
"""The name of the project."""
157153
return self.__name
158154

159-
@property
160-
def run_id(self) -> str:
161-
"""The run identifier of the project."""
162-
return self.__run_id
163-
164155
@property
165156
def workspace(self) -> Path:
166157
"""The workspace of the project."""
@@ -239,7 +230,6 @@ def put(self, key: str, report: EstimatorReport | CrossValidationReport):
239230
report=report,
240231
artifact_id=pickle_hash,
241232
project_name=self.name,
242-
run_id=self.run_id,
243233
key=key,
244234
)
245235
)
@@ -259,7 +249,6 @@ def summarize(self) -> list[Metadata]:
259249
return [
260250
{
261251
"id": value["artifact_id"],
262-
"run_id": value["run_id"],
263252
"key": value["key"],
264253
"date": value["date"],
265254
"learner": value["learner"],

0 commit comments

Comments
 (0)