Repository navigation
add weights to the fits - #118
Merged
Merged
Conversation
carluri
force-pushed
the
weighted_fits_sk
branch
from
November 13, 2026 21:19
1351469 to
332e43d
Compare
The branch predates the rename of the fit configuration key from
'rois' to 'VOIs' and the addition of 'washout_ratio', so its single
commit conflicted with main.
Resolved by taking main's version of base_dosimetry.py and re-applying
the sigma feature on top of it:
- sigma is read from self.config['VOIs'][region] instead of the old
'rois' key
- the call keeps main's washout_ratio argument and adds sigma=sigma
Behaviour is unchanged unless a VOI config sets 'sigma': the lookup uses
.get('sigma', None), and exponential_fit_lmfit already treats sigma=None
as an unweighted fit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In this code we add an option to use weighted fits (fraction, sqrt, absolute) - to be defined in config file