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

replace settings to public #732

Merged
merged 4 commits into from
Nov 11, 2024
Merged

replace settings to public #732

merged 4 commits into from
Nov 11, 2024

Conversation

SAKURA-CAT
Copy link
Contributor

Description

swanlab.init返回的类run会携带public属性,替换了之前的settings属性,他会返回:

  1. project_name 当前运行的项目名称
  2. version 当前运行的swanlab版本
  3. run_id 一个唯一id
  4. swanlog_dir swanlab保存文件夹
  5. run_dir 本次实验的保存文件夹
  6. cloud 云端环境的相关信息

cloud信息包括:

  1. avaliable 是否运行在云端模式,如果不是,下面的属性全部为None
  2. project_name 本次运行的项目名称
  3. project_url 本次运行在云端项目url
  4. experiment_name 本次运行的实验名称
  5. experiment_url 本次运行的云端实验url

@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin November 10, 2024 12:55
@SAKURA-CAT SAKURA-CAT self-assigned this Nov 10, 2024
@SAKURA-CAT SAKURA-CAT added 🐛 bug Something isn't working 💪 enhancement New feature or request and removed 🐛 bug Something isn't working labels Nov 10, 2024
@Zeyi-Lin
Copy link
Member

Zeyi-Lin commented Nov 10, 2024

能不能加个方法.json(),比如run.public.json(),可以获取一个字典,会更方便一些

@SAKURA-CAT
Copy link
Contributor Author

SAKURA-CAT commented Nov 11, 2024

能不能加个方法.json(),比如run.public.json(),可以获取一个字典,会更方便一些

已添加

@SAKURA-CAT SAKURA-CAT force-pushed the feat/public-and-shell branch from b8b8490 to d3bcfa4 Compare November 11, 2024 05:29
@SAKURA-CAT SAKURA-CAT force-pushed the feat/public-and-shell branch from d3bcfa4 to d6879a2 Compare November 11, 2024 05:50
@SAKURA-CAT SAKURA-CAT merged commit 189760a into main Nov 11, 2024
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the feat/public-and-shell branch November 11, 2024 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants