Skip to content

Use .json file for tests#1041

Merged
scarrazza merged 8 commits into
masterfrom
test_use_json
Jan 13, 2021
Merged

Use .json file for tests#1041
scarrazza merged 8 commits into
masterfrom
test_use_json

Conversation

@scarlehoff
Copy link
Copy Markdown
Member

Since now we have a .json file with all the information from the fit, I thought it made sense to use this instead of the "legacy files" in order to do a regression test.

Since the .fitinfo file in particular is still being used by validphys (and postfit), the test also ensures that the information in the .fitinfo file and the .json file is the same.

Finally, I added a second regression test since replica 1 doesn't pass the positivity veto so that we have one that passes (replica 2) (and therefore stops early) and one that doesn't. The double one is only ran in Linux, in Mac I'm running only replica 1, since the fit takes x3 in travis.

@scarlehoff
Copy link
Copy Markdown
Member Author

Added the reviewers for #1035 since they are "related"

@scarlehoff scarlehoff added the n3fit Issues and PRs related to n3fit label Jan 4, 2021
Copy link
Copy Markdown
Contributor

@siranipour siranipour left a comment

Choose a reason for hiding this comment

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

lgtm

Comment thread n3fit/src/n3fit/tests/test_fit.py Outdated
Comment thread n3fit/src/n3fit/tests/test_fit.py Outdated
Comment thread n3fit/src/n3fit/tests/test_fit.py
@scarlehoff
Copy link
Copy Markdown
Member Author

(rebased to avoid the error with hypothesis)

@scarrazza scarrazza merged commit 15b9398 into master Jan 13, 2021
@scarrazza scarrazza deleted the test_use_json branch January 13, 2021 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

n3fit Issues and PRs related to n3fit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants