refactor: use a more flexible interface to utilize diffpy.srfit - #31
Draft
ycexiao wants to merge 8 commits into
Draft
refactor: use a more flexible interface to utilize diffpy.srfit#31ycexiao wants to merge 8 commits into
diffpy.srfit#31ycexiao wants to merge 8 commits into
Conversation
ycexiao
commented
Aug 5, 2026
| ) | ||
|
|
||
|
|
||
| def test_refinement_session(): |
Contributor
Author
There was a problem hiding this comment.
@sbillinge Could you please review the function signatures we have now? If there aren't any issues, I'll continue working on making the tests pass.
sbillinge
reviewed
Aug 6, 2026
sbillinge
left a comment
Contributor
There was a problem hiding this comment.
this seems like a good start. It is a bit hard to know what else we will need until we start using it (or the agent does)
ycexiao
commented
Aug 15, 2026
|
|
||
| def test_refine_sine(): | ||
| # C1: Refinement session without additional calculator or functions | ||
| session = RefinementSession() |
Contributor
Author
There was a problem hiding this comment.
@sbillinge Please see this new interaction logic with ParametricModel.
I thought it couldn't be more straightforward and simpler. But if it could, could you please add some pseudo-code here so I can implement it?
ycexiao
commented
Aug 15, 2026
| ni_model.parameters["ni_model.s"].value = 1.0 | ||
|
|
||
| session = RefinementSession() | ||
| session.solve( |
Contributor
Author
There was a problem hiding this comment.
constraints have not been implemented, so value check is not added.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR address?
Use a more flexible interface to utilize
diffpy.srfitWhat should the reviewer(s) do?