Skip to content

surgical removal of x_o.setter#1937

Merged
dgedon merged 1 commit into
sbi-dev:gsoc-2026from
Jocho-Smith:set-x-prepare-v2
Jul 22, 2026
Merged

surgical removal of x_o.setter#1937
dgedon merged 1 commit into
sbi-dev:gsoc-2026from
Jocho-Smith:set-x-prepare-v2

Conversation

@Jocho-Smith

Copy link
Copy Markdown
Contributor

This PR removes the optional x_o.setter function that just falls back to set_x. Since set_x will be removed in future releases, this simplification should make it more readable.

Local tests passed.

@codecov

codecov Bot commented Jul 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 88.02%. Comparing base (587f922) to head (b708598).
⚠️ Report is 20 commits behind head on gsoc-2026.

Files with missing lines Patch % Lines
sbi/samplers/vi/vi_divergence_optimizers.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##           gsoc-2026    #1937      +/-   ##
=============================================
+ Coverage      87.99%   88.02%   +0.02%     
=============================================
  Files            144      144              
  Lines          13499    13557      +58     
=============================================
+ Hits           11879    11934      +55     
- Misses          1620     1623       +3     
Flag Coverage Δ
fast 81.62% <50.00%> (?)

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

Files with missing lines Coverage Δ
sbi/inference/potentials/base_potential.py 92.45% <ø> (-0.41%) ⬇️
sbi/utils/conditional_density_utils.py 93.20% <ø> (-0.05%) ⬇️
sbi/samplers/vi/vi_divergence_optimizers.py 84.69% <50.00%> (-0.33%) ⬇️

... and 2 files with indirect coverage changes

@dgedon dgedon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks!

@dgedon
dgedon merged commit 6b3d9af into sbi-dev:gsoc-2026 Jul 22, 2026
17 checks passed
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