Skip to content

Add persistent fit results and project-centric workflows#178

Merged
AndrewSazonov merged 72 commits into
developfrom
multi
May 19, 2026
Merged

Add persistent fit results and project-centric workflows#178
AndrewSazonov merged 72 commits into
developfrom
multi

Conversation

@AndrewSazonov
Copy link
Copy Markdown
Member

This PR adds persistent analysis state and sidecar storage for deterministic and Bayesian fit results, restores Bayesian sampler settings when reloading projects, expands project-focused CLI workflows, and updates tutorials and ADRs to match the new save/load model.

@AndrewSazonov AndrewSazonov added the [scope] enhancement Adds/improves features (major.MINOR.patch) label May 19, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2026

Codecov Report

❌ Patch coverage is 83.44322% with 452 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.77%. Comparing base (ab68979) to head (208a3e7).

Files with missing lines Patch % Lines
src/easydiffraction/io/results_sidecar.py 68.35% 64 Missing and 42 partials ⚠️
src/easydiffraction/analysis/analysis.py 82.99% 52 Missing and 39 partials ⚠️
src/easydiffraction/display/plotting.py 47.97% 57 Missing and 20 partials ⚠️
src/easydiffraction/utils/utils.py 45.90% 29 Missing and 4 partials ⚠️
src/easydiffraction/__main__.py 57.14% 26 Missing and 1 partial ⚠️
src/easydiffraction/analysis/minimizers/bumps.py 76.23% 17 Missing and 7 partials ⚠️
src/easydiffraction/project/display.py 55.26% 13 Missing and 4 partials ⚠️
src/easydiffraction/project/project.py 80.59% 7 Missing and 6 partials ⚠️
...c/easydiffraction/analysis/fit_helpers/tracking.py 75.51% 6 Missing and 6 partials ⚠️
src/easydiffraction/utils/environment.py 76.08% 7 Missing and 4 partials ⚠️
... and 10 more
Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #178      +/-   ##
===========================================
- Coverage    85.98%   85.77%   -0.21%     
===========================================
  Files          173      210      +37     
  Lines        13374    15884    +2510     
  Branches      1574     1831     +257     
===========================================
+ Hits         11499    13624    +2125     
- Misses        1293     1548     +255     
- Partials       582      712     +130     
Flag Coverage Δ
integration 71.77% <75.20%> (+1.77%) ⬆️
unittests 78.09% <72.67%> (-0.36%) ⬇️

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

Files with missing lines Coverage Δ
src/easydiffraction/__init__.py 100.00% <100.00%> (ø)
src/easydiffraction/analysis/__init__.py 100.00% <100.00%> (ø)
...rc/easydiffraction/analysis/categories/__init__.py 100.00% <100.00%> (ø)
...alysis/categories/bayesian_convergence/__init__.py 100.00% <100.00%> (ø)
...nalysis/categories/bayesian_convergence/default.py 100.00% <100.00%> (ø)
...nalysis/categories/bayesian_convergence/factory.py 100.00% <100.00%> (ø)
...ategories/bayesian_distribution_caches/__init__.py 100.00% <100.00%> (ø)
...categories/bayesian_distribution_caches/factory.py 100.00% <100.00%> (ø)
...alysis/categories/bayesian_pair_caches/__init__.py 100.00% <100.00%> (ø)
...nalysis/categories/bayesian_pair_caches/factory.py 100.00% <100.00%> (ø)
... and 53 more

... and 2 files with indirect coverage changes

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

@AndrewSazonov AndrewSazonov merged commit 57f00e1 into develop May 19, 2026
31 of 32 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

None yet

Development

Successfully merging this pull request may close these issues.

1 participant