Skip to content

Commit

Permalink
add key_id for settings (#13)
Browse files Browse the repository at this point in the history
* add key_id for settings

* update version
  • Loading branch information
SAKURA-CAT authored Jun 29, 2024
1 parent 33495c1 commit 8bfbba1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
5 changes: 5 additions & 0 deletions swankit/callback/models/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class ColumnInfo:

def __init__(
self,
key_id: str,
key: str,
namespace: str,
chart: ChartType,
Expand All @@ -28,6 +29,10 @@ def __init__(
reference: Optional[str] = None,
config: Optional[Dict] = None,
):
self.id = key_id
"""
当前实验下,列的唯一id,与保存路径等信息有关
"""
self.key = key
"""
列的key名称
Expand Down

0 comments on commit 8bfbba1

Please sign in to comment.