Skip to content

Conversation

@fhagemann
Copy link
Collaborator

@fhagemann fhagemann commented Oct 26, 2025

The current implementation for impurity density corrections requires EVERY future impurity density to define a method (*)(scale, impurity_density) and (+)(offset, impurity_density).

I have moved handling of corrections into the generic constructor of ImpurityDensity and have implemented a default (*)(scale, impurity_density) and (+)(offset, impurity_density) that throws a ConfigFileError for impurity densities that do not define those methods.

@fhagemann fhagemann requested a review from hervasa2 October 26, 2025 12:52
@fhagemann fhagemann added the convenience Improve user-friendliness label Oct 26, 2025
@fhagemann fhagemann modified the milestone: v0.11.0 Oct 26, 2025
@fhagemann
Copy link
Collaborator Author

@hervasa2 if this looks good to you, I would suggest releasing this, together with #547 as v0.10.27 soon.

@fhagemann fhagemann changed the title Make corrections of impurity densities optional Make corrections of impurity densities optional Oct 26, 2025
@fhagemann fhagemann merged commit 610bcce into main Oct 26, 2025
10 checks passed
@fhagemann fhagemann deleted the corrections branch October 26, 2025 14:18
fhagemann added a commit that referenced this pull request Oct 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

convenience Improve user-friendliness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants