Skip to content

Fix penalties and add tests - #1668

Merged
scarlehoff merged 4 commits into
masterfrom
fix_to_penalties
Jan 30, 2023
Merged

Fix penalties and add tests#1668
scarlehoff merged 4 commits into
masterfrom
fix_to_penalties

Conversation

@scarlehoff

Copy link
Copy Markdown
Member

These have been broken since a while, but since nobody used them it didn't really matter.

Don't think they will be used but who knows, I added a few tests since (even if they are not used in practice) they ensure that several pieces of the code work well together as they require the correct flavours being set, n3fit model to be compatible with validphys, etc.

@RoyStegeman RoyStegeman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think anyone is using this, though @Zaharid did contact me about it recently so he may want to be aware of this.

Comment thread n3fit/src/n3fit/tests/test_penalties.py Outdated
Comment thread n3fit/src/n3fit/tests/test_penalties.py Outdated
Co-authored-by: Roy Stegeman <roystegeman@live.nl>
Comment thread n3fit/src/n3fit/hyper_optimization/penalties.py Outdated
Comment thread n3fit/src/n3fit/hyper_optimization/penalties.py Outdated
Comment thread n3fit/src/n3fit/tests/test_penalties.py Outdated
@RoyStegeman

Copy link
Copy Markdown
Member

I think this is ready to be merged?

@scarlehoff
scarlehoff merged commit dd993f8 into master Jan 30, 2023
@scarlehoff
scarlehoff deleted the fix_to_penalties branch January 30, 2023 13:29
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