Skip to content

Centralize tqdm handling and showing progress in CI - #455

Closed
jagdep-singh wants to merge 7 commits into
NMRLipids:mainfrom
jagdep-singh:tqdm-fix
Closed

Centralize tqdm handling and showing progress in CI#455
jagdep-singh wants to merge 7 commits into
NMRLipids:mainfrom
jagdep-singh:tqdm-fix

Conversation

@jagdep-singh

@jagdep-singh jagdep-singh commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

This PR centralizes all progress-bar handling into a single progress() helper and ensures progress is visible by default in all environments, including GitHub Actions.

issue #431

Changes

  • Introduced a centralized progress() helper in lipids/_base.py and re-exported it via lipids/__init__.py
  • Migrated all existing tqdm usages to use this helper
  • Removed any auto-disable / TTY-based logic
  • Ensured progress output is routed to stdout
  • Cleaned up imports and passed lint

Why

  • CI logs should show progress by default
  • Centralizing tqdm handling avoids duplicated logic and future inconsistencies

Note


📚 Documentation preview 📚: https://databank--455.org.readthedocs.build/

@jagdep-singh

Copy link
Copy Markdown
Contributor Author

@comcon1 i have no idea why these tests are not passing need help here

@comcon1

comcon1 commented Feb 12, 2026

Copy link
Copy Markdown
Member

This is the proper fix of circular imports instead of what you did.
https://github.com/comcon1/Databank/tree/tqdm-fix-help

I also fixed the style of optional arguments.

You can force-push it to your branch. Then there are other tests which are broken currently.

@comcon1

comcon1 commented Feb 12, 2026

Copy link
Copy Markdown
Member

You are growing your commit tree with merge intersection instead of just throwing away improper commits. Please check, how force-push works. You made a mistake commits, then you merged then you made other commits. It's not the way. Please stay on the commit before you made a mistake, then add commit, then force-push. Then you can consider merging. It's a proper sequence.

@comcon1 comcon1 closed this Feb 20, 2026
comcon1 added a commit that referenced this pull request Mar 1, 2026
* Centralize tqdm handling and showing progress in CI

* Fix circular imports. Fix modern style of optional arguments.

* Fix progress wrapping accepting no iterable pos arg

* Use progress in new 4maicos non-gromacs centering interface

* Linter fix

* Fix test_uc, check that progress writes to stdout by default

---------

Co-authored-by: jagdep-singh <jagdeep.singh12a@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants