Skip to content

add weights to the fits - #118

Merged
carluri merged 2 commits into
mainfrom
weighted_fits_sk
Nov 13, 2026
Merged

carluri merged 2 commits into
mainfrom
weighted_fits_sk

Conversation

@sarakurkowska

Copy link
Copy Markdown
Collaborator

In this code we add an option to use weighted fits (fraction, sqrt, absolute) - to be defined in config file

@sarakurkowska
sarakurkowska requested review from carluri and plesqui April 4, 2026 20:51
@carluri
carluri changed the base branch from dev to main November 13, 2026 23:08
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.
@carluri
carluri merged commit 74669e5 into main Nov 13, 2026
6 checks passed
@carluri
carluri deleted the weighted_fits_sk branch November 14, 2026 00:07
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