Skip to content
Merged
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
4 changes: 4 additions & 0 deletions swanlab/data/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ def init(
swanlog.warning(f"project name is too long, auto cut to {p}")
project = p
# 2.2 校验实验名称
# 处理空字符串或纯空格字符串情况
if experiment_name is not None and not experiment_name.strip():
swanlog.warning("The experiment name is an empty or whitespace-only string, automatically converted to None.")
experiment_name = None
if experiment_name:
e = check_exp_name_format(experiment_name)
if experiment_name != e:
Expand Down