-
Notifications
You must be signed in to change notification settings - Fork 12
cleanup code, improve folder names #9
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
Conversation
update unique ID format in reporter.py Signed-off-by: Paul Zabelin <[email protected]>
remove extra packages in test, rename test files for clarity Signed-off-by: Paul Zabelin <[email protected]>
Signed-off-by: Paul Zabelin <[email protected]>
Signed-off-by: Paul Zabelin <[email protected]>
This reverts commit 041fb73.
for github action: Error: The path for one of the files in artifact is not valid: /test_allocations_hallucinating-0305-20:12:08/0-True.json. Contains the following character: Colon : Invalid characters include: Double quote ", Colon :, Less than <, Greater than >, Vertical bar |, Asterisk *, Question mark ?, Carriage return \r, Line feed \n The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems. Signed-off-by: Paul Zabelin <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Overview
This PR focuses on cleaning up the code and improving folder naming conventions. The changes include:
- Updating the timestamp format in the Reporter class for creating unique IDs.
- Renaming a test function for increased clarity.
- Removing an unused import in an example test file.
Reviewed Changes
| File | Description |
|---|---|
| src/cat_ai/reporter.py | Updated the timestamp format used in unique ID generation, which affects folder naming. |
| tests/test_reporter.py | Renamed the test function to better reflect its purpose. |
| examples/team_recommender/tests/example_4_loop_no_hallucinating/test_allocations_hallucinating.py | Removed an unused import to clean up the code. |
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
| return datetime.now().strftime("%m%d-%H_%M_%S") | ||
|
|
Copilot
AI
Mar 5, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new timestamp format omits the year, which may reduce uniqueness over different years if the output directory is reused. Consider including the year (e.g., "%Y%m%d-%H_%M_%S") to ensure folder names remain distinct.
| return datetime.now().strftime("%m%d-%H_%M_%S") | |
| return datetime.now().strftime("%Y%m%d-%H_%M_%S") |
No description provided.