Skip to content

Add method GetRwHistory to lsq - #107

Merged
vincefn merged 3 commits into
diffpy:mainfrom
clemisch:rw_history
Sep 24, 2026
Merged

vincefn merged 3 commits into
diffpy:mainfrom
clemisch:rw_history

Conversation

@clemisch

Copy link
Copy Markdown
Contributor

Exposes new Rw history in LSQ object to Python via lsq.GetRwHistory().

Requires vincefn/objcryst#90 .

Rw history is stored in internal vector over one call of lsq.Refine(). It's in "fractional" units ∈ [0, 1], not in percent. That's just because objcryst seems to handle mostly fractional Rw internally. We could change the user-facing value to Rwp.

@sbillinge

Copy link
Copy Markdown
Contributor

LGTM Can merge when it is passing tests. btw @clemisch it has picked up a conflict along the way.

clemens.schmid@esrf.fr and others added 2 commits August 26, 2026 10:25
turns internal std::vector<REAL> into Python list
@clemisch

Copy link
Copy Markdown
Contributor Author

Thanks Simon, I fixed the conflict.

I think the tests will work only after objcryst has a new release?

@sbillinge

Copy link
Copy Markdown
Contributor

@clemisch please ping me to merge this when objcryst goes out and this passes.

@clemisch

Copy link
Copy Markdown
Contributor Author

@sbillinge I bumped libobjcryst to 2026.3.0 and tests pass 🥳

@vincefn
vincefn merged commit 440fa7a into diffpy:main Sep 24, 2026
5 checks passed
@clemisch
clemisch deleted the rw_history branch September 25, 2026 07:02
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.

3 participants