Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add key_id for settings #13

Merged
merged 2 commits into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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