Skip to content

Add overload to PowderPattern.GetOption binding to accept option name - #134

Open
clemisch wants to merge 1 commit into
diffpy:mainfrom
clemisch:getoption-by-name
Open

clemisch wants to merge 1 commit into
diffpy:mainfrom
clemisch:getoption-by-name

Conversation

@clemisch

@clemisch clemisch commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Needed for new objcryst RefObjOpt to deactivate unconstrained LSTSQ fit of all phase scales.

After vincefn/objcryst#111, use like

pp.GetOption("Fit Scale Factors at Beginning of Optimization").SetChoice("No")

This PR only adds a binding though, it doesn't change any options. Default behavior for the scale fit is still "Yes" to keep current behavior.

needed for new objcryst RefObjOpt to deactivate unconstrained LSTSQ fit
of all phase scales
@clemisch

Copy link
Copy Markdown
Contributor Author

Tests fail until new objcryst is pinned/used

@sbillinge

Copy link
Copy Markdown
Contributor

@clemisch is this waiting for a new objcryst release so it can pass tests and get merged? Could you let me know what you want me to do here? By default I am waiting till tests pass.

@clemisch

Copy link
Copy Markdown
Contributor Author

Yes I would wait for objcryst release and passing tests. Sorry I didn't make that clear!

@sbillinge

Copy link
Copy Markdown
Contributor

btw, is a new objcryst release pending? We want to push out the nanobound pyobjcryst as our cmi work is built on pyobjcryst. Our latest nanobound diffpy.srreal is working with the current pyobjcryst release (2026.1.0) but we would love to have it running against 2026.2.0. There is already an rc release of that was successful, so we don't need to merge this to push that out. There will be 2027.1.0 shortly with python 3.15 support too I guess and this could join that?

TL;DR: @clemisch @vincefn is it ok to move ahead with 2026.2.0 without this work?

@clemisch

clemisch commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

is it ok to move ahead with 2026.2.0 without this work?

For me it's fine! For my custom "deployment" I can install from Github anyway and not depend on the PyPI status.

@vincefn

vincefn commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Same for me, it's fine - I think a more obvious entry in the changelog should mention the new nanobind port, but other wise you can go ahead with the release.
btw, why not include python 3.15 already ?

This branch has not been deployed

No deployments
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