From 8bfbba1e2d3eaeb8e8a76b2c1db44b2c628a0270 Mon Sep 17 00:00:00 2001 From: KAAANG <79990647+SAKURA-CAT@users.noreply.github.com> Date: Sat, 29 Jun 2024 22:28:05 +0800 Subject: [PATCH] add key_id for settings (#13) * add key_id for settings * update version --- pyproject.toml | 2 +- swankit/callback/models/key.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 0cead74..182e4e4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,7 @@ build-backend = "hatchling.build" [project] name = "swankit" -version = "0.1.0b10" +version = "0.1.0" dynamic = ["readme"] description = "Base toolkit for SwanLab" license = "Apache-2.0" diff --git a/swankit/callback/models/key.py b/swankit/callback/models/key.py index 85f4b35..7aad74d 100644 --- a/swankit/callback/models/key.py +++ b/swankit/callback/models/key.py @@ -20,6 +20,7 @@ class ColumnInfo: def __init__( self, + key_id: str, key: str, namespace: str, chart: ChartType, @@ -28,6 +29,10 @@ def __init__( reference: Optional[str] = None, config: Optional[Dict] = None, ): + self.id = key_id + """ + 当前实验下,列的唯一id,与保存路径等信息有关 + """ self.key = key """ 列的key名称