Skip to content

Flush stdout before each call to _process_chunk#207

Merged
joezuntz merged 1 commit intomainfrom
jaz/flush
Jul 21, 2025
Merged

Flush stdout before each call to _process_chunk#207
joezuntz merged 1 commit intomainfrom
jaz/flush

Conversation

@joezuntz
Copy link
Copy Markdown
Contributor

Problem & Solution Description (including issue #)

When I redirect BPZ's catalog estimator to file on MacOS I don't get any logging output until right at the end due to buffering. This change adds a flush so that the user can see progress even it it is logged to file. It should have no other effects.

Code Quality

  • My code follows the code style of this project
  • I have written unit tests or justified all instances of #pragma: no cover; in the case of a bugfix, a new test that breaks as a result of the bug has been added
  • My code contains relevant comments and necessary documentation for future maintainers; the change is reflected in applicable demos/tutorials (with output cleared!) and added/updated docstrings use the NumPy docstring format
  • Any breaking changes, described above, are accompanied by backwards compatibility and deprecation warnings

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 21, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.75%. Comparing base (102b27a) to head (1b0d44c).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #207   +/-   ##
=======================================
  Coverage   99.75%   99.75%           
=======================================
  Files          47       47           
  Lines        3317     3319    +2     
=======================================
+ Hits         3309     3311    +2     
  Misses          8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eacharles eacharles self-requested a review July 21, 2025 15:34
@joezuntz joezuntz merged commit fc842bc into main Jul 21, 2025
7 checks passed
@joezuntz joezuntz deleted the jaz/flush branch July 21, 2025 16:31
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.

3 participants