-
Notifications
You must be signed in to change notification settings - Fork 49
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
Stabilize diffraction module #940
Conversation
Codecov Report
@@ Coverage Diff @@
## master #940 +/- ##
=======================================
Coverage 55.22% 55.22%
=======================================
Files 15 15
Lines 2586 2586
Branches 38 38
=======================================
Hits 1428 1428
Misses 1142 1142
Partials 16 16
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will admit that I don't know all the details of #761 (fixing #750 ) or #793 because others were working on them a long time ago, but based on their descriptions I wouldn't think those PRs would introduce API changes to the diffraction module. In addition #936 shouldn't introduce API changes. When we declare a module stable we are simply declaring that the API won't change without a major version bump, right? |
An API stability promise is the primary part of the declaration, but I also think there is a secondary promise of behavior (up to any bugs that are found). I hesitate to promise that we won't change APIs while knowing that the current behavior has a significant bug. Even if the API remains unchanged, the behavior must change in a significant way if the bug is fixed. Users relying on this code today could see significant changes in later 2.X releases, which doesn't feel "stable." We don't really gain anything by marking this API as stable, and I think it is helpful to let users know that it is less polished than the rest of freud. |
Okay, in that case I'll close this and make the release later this week without any stability guarantees for the diffraction module. |
When I last spoke with @andkerr I was under the impression that #793 and #761 are basically supposed to solve the same thing - or #793 was supposed to just solve a small subset of issues in #750 . I don't know if @andkerr has plans to finish #793 or not but since he has finished I doubt that will be the case - maybe we can get a more concrete answer from him. I know some progress on #761 was made offline about some 8 or so months ago - but was never pushed upstream. If I do recall correctly the fix fixed only a subset of issues associated with #750 and we couldn't figure out how to solve the rest. @tcmoore3 might remember more details about this. |
@bdice I haven't really followed the discussions around CC @tommy-waltmann in case this affects your release plan. |
@vyasr I agree that the current behavior of silently giving incorrect results is not good. As I recall, the diffraction image is qualitatively almost-right for non-cubic boxes, up to an affine transformation of the image, which turns out to be somewhat useful (even if incorrect) if you’re looking at the image with an interactive 3D linked view in OVITO. However, the k-values on the axes and matrix of k-vectors definitely would not correspond to the image’s peaks unless that transformation is applied to the image. I had hoped this would get fixed by one of the several developers who have attempted a fix over the last several releases ago but it has stalled. In light of that, failing explicitly for noncubic boxes would be a good way to prevent users from interpreting the system incorrectly. |
@tommy-waltmann do you think you could do that instead before making the next release? I think that's the responsible thing to do for our users until someone actually fixes the underlying problem. It might also encourage someone to actually fix the problem instead of relying on the current "almost right" behavior, which would be ideal. |
Yes, I can do that. It will likely push the release back to next week, but that's not a big deal. |
Description
This PR removes the notice saying the diffraction module is unstable, and updates the changelog with a statement saying the API is now stable.
Motivation and Context
This PR should be the last one merged before the 2.9.0 release, which I plan to make in the near future. The actual changes that stabilize the diffraction module's API were completed in #937 , so this PR is here to alert users to the slight API changes before the next release goes out.
How Has This Been Tested?
No tests needed for this PR.
Types of changes
Checklist: