Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update benchmark for analysis system test #133

Merged
merged 6 commits into from
Sep 10, 2024

Conversation

GuiMacielPereira
Copy link
Collaborator

Description of work:
The system test for the analysis procedure was using a very old bench mark of results, which was storing the results of an antiquated version of the routine.

The routine should finally be updated and so the benchmark for the analysis system test should be updated too, because the difference in results is more than the tolerance that I had set.

To test:
Check that the analysis tests pass.

Instead of defining a function for the numerical pseudo voigt function, we can
just use scipy's voigt function, which is better defined and less prone to breaking.
Removed step that converted data to point data because workspace is already
a point data workspace. So the original routine was passing data again to histogram
which slightly shifts the correct position of the data.
Updated the benchmark by copying the outputs from the current
sample_test.py.
Removed a step that would mask zeros as np.nan right before storing the results.
This is not necessary anymore as the benchmark for the system tests is being
updated in this PR.

Updated the benchmark once again to match current state of vesuvio analysis.
Commiting a space to trigger correct tests on github. Ignore this commit.
Copy link
Collaborator

@SilkeSchomann SilkeSchomann left a comment

Choose a reason for hiding this comment

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

The changes look good and using the voigt profile from scipy instead of our own implementation makes a lot of sense 👍🏻

@GuiMacielPereira GuiMacielPereira merged commit 2ed3eb4 into main Sep 10, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants