Skip to content

Correction weighted lasso variables#152

Merged
daducci merged 3 commits intorelease/v2.4.2from
correction_weighted_lasso
Oct 6, 2025
Merged

Correction weighted lasso variables#152
daducci merged 3 commits intorelease/v2.4.2from
correction_weighted_lasso

Conversation

@SaraBosticardo
Copy link
Collaborator

Fixed problems with weighted lasso variables

@daducci
Copy link
Owner

daducci commented Oct 6, 2025

Looks good! @SaraBosticardo, can you please update the version inside the pyproject.toml file and document the changes in CHANGELOG.md?

# compute array of weights from image
array_weights = weights_img[ self.DICTIONARY['MASK_ix'], self.DICTIONARY['MASK_iy'], self.DICTIONARY['MASK_iz'] ].flatten().astype(np.float32)
if array_weights.size != self.DICTIONARY['nV']:
array_weights = array_weights[self.DICTIONARY['ISO']['vox']]
Copy link
Owner

Choose a reason for hiding this comment

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

Here we are overwriting the array_weight array; shall we create a new one?

@daducci daducci merged commit 8316ec1 into release/v2.4.2 Oct 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments