Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Conversation

@SAKURA-CAT
Copy link
Member

@SAKURA-CAT SAKURA-CAT commented Feb 11, 2025

This pull request includes changes to the swankit/callback/models/key.py file and its corresponding test file to improve the handling and representation of metric data. The most important changes include the addition of __str__ and __repr__ methods to the MetricInfo class and corresponding tests to ensure these methods work as expected.

For SwanHubX/SwanLab#816

Improvements to MetricInfo class:

  • swankit/callback/models/key.py: Added __str__ and __repr__ methods to the MetricInfo class to return the string representation of the data attribute.

Corresponding test updates:

@SAKURA-CAT SAKURA-CAT requested a review from Zeyi-Lin February 11, 2025 10:52
@SAKURA-CAT SAKURA-CAT self-assigned this Feb 11, 2025
@SAKURA-CAT SAKURA-CAT added the enhancement New feature or request label Feb 11, 2025
@Zeyi-Lin Zeyi-Lin merged commit 00f9627 into main Feb 11, 2025
5 checks passed
@SAKURA-CAT SAKURA-CAT deleted the feat/fmt-metric branch February 11, 2025 10:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants