-
Notifications
You must be signed in to change notification settings - Fork 0
tdqm 1 #10
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
base: main
Are you sure you want to change the base?
tdqm 1 #10
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,7 +38,7 @@ def tenumerate(iterable, start=0, total=None, tqdm_class=tqdm_auto, | |
| if isinstance(iterable, np.ndarray): | ||
| return tqdm_class(np.ndenumerate(iterable), | ||
| total=total or len(iterable), **tqdm_kwargs) | ||
| return enumerate(tqdm_class(iterable, **tqdm_kwargs), start) | ||
| return enumerate(tqdm_class(iterable, start, **tqdm_kwargs)) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainBreaking change: This change moves the Issues identified:
Verification needed: Consider either:
🏁 Script executed: #!/bin/bash
# Search for existing usage of tenumerate with start parameter to assess impact
rg -A 3 -B 3 "tenumerate.*start\s*="
# Look for any documentation or tests that might explain the intended behavior
rg -A 5 -B 5 "start.*enumerate|enumerate.*start"Length of output: 1933 Breaking change: The recent change moves the Locations requiring attention:
ignores Recommended fixes:
🤖 Prompt for AI AgentsThere was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 Warning 🐛 Bugtenumerate's Issue Explanation
Reply if you have any questions or let me know if I missed something. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟠 Warning 🐛 BugPassing the Issue Explanation
return enumerate(tqdm_class(iterable, start, **tqdm_kwargs))Reply if you have any questions or let me know if I missed something. |
||
|
|
||
|
|
||
| def _tzip(iter1, *iter2plus, **tqdm_kwargs): | ||
|
|
||
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.
🛠️ Refactor suggestion
Inconsistent
startparameter handling in numpy path.The numpy code path doesn't handle the
startparameter at all, creating inconsistent behavior between numpy arrays and other iterables.if isinstance(iterable, np.ndarray): return tqdm_class(np.ndenumerate(iterable), - total=total or len(iterable), **tqdm_kwargs) + total=total or len(iterable), + initial=start, **tqdm_kwargs)This assumes
startshould affect the initial progress bar position consistently across both code paths.📝 Committable suggestion
🤖 Prompt for AI Agents