Skip to content

Conversation

@AndrewSazonov
Copy link
Member

This PR introduces a major cleanup and consolidation of the logging and display subsystems across EasyDiffraction.
It replaces legacy print-based outputs with structured logging, improves Rich-based formatting.

The refactor also refines table rendering, environment detection, and display styling for consistent behavior in both terminal and Jupyter environments.

@AndrewSazonov AndrewSazonov added this to the New API Stabilization milestone Oct 22, 2025
@AndrewSazonov AndrewSazonov added the [scope] enhancement Adds/improves features (major.MINOR.patch) label Oct 22, 2025
@codecov
Copy link

codecov bot commented Oct 22, 2025

Codecov Report

❌ Patch coverage is 66.94836% with 352 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.31%. Comparing base (0b21681) to head (57a91d6).
⚠️ Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
src/easydiffraction/utils/logging.py 69.37% 54 Missing and 10 partials ⚠️
src/easydiffraction/analysis/analysis.py 46.87% 48 Missing and 3 partials ⚠️
src/easydiffraction/display/plotting.py 69.13% 42 Missing and 8 partials ⚠️
src/easydiffraction/utils/environment.py 53.12% 26 Missing and 4 partials ⚠️
src/easydiffraction/display/tablers/pandas.py 35.00% 26 Missing ⚠️
src/easydiffraction/display/utils.py 0.00% 22 Missing ⚠️
src/easydiffraction/display/tablers/rich.py 69.09% 16 Missing and 1 partial ⚠️
src/easydiffraction/display/tables.py 73.58% 11 Missing and 3 partials ⚠️
src/easydiffraction/utils/utils.py 64.86% 13 Missing ⚠️
src/easydiffraction/display/base.py 85.91% 10 Missing ⚠️
... and 14 more
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #107      +/-   ##
===========================================
- Coverage    82.26%   81.31%   -0.95%     
===========================================
  Files           83       89       +6     
  Lines         4708     5117     +409     
  Branches       392      412      +20     
===========================================
+ Hits          3873     4161     +288     
- Misses         701      810     +109     
- Partials       134      146      +12     
Flag Coverage Δ
functional 66.69% <47.23%> (-0.32%) ⬇️
unittests 73.69% <66.10%> (-0.27%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@AndrewSazonov AndrewSazonov merged commit 17ded39 into develop Oct 23, 2025
41 of 46 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[scope] enhancement Adds/improves features (major.MINOR.patch)

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants