Skip to content

test: add test fro sequential_cmi_runner#20

Merged
sbillinge merged 1 commit intoPDF-bl:mainfrom
ycexiao:test-runner
Feb 4, 2026
Merged

test: add test fro sequential_cmi_runner#20
sbillinge merged 1 commit intoPDF-bl:mainfrom
ycexiao:test-runner

Conversation

@ycexiao
Copy link
Copy Markdown
Contributor

@ycexiao ycexiao commented Feb 4, 2026

What problem does this PR address?

Add test for sequential_cmi_runner.

What should the reviewer(s) do?

Please see the code.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor Author

@ycexiao ycexiao left a comment

Choose a reason for hiding this comment

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

@sbillinge, it's ready for review.

from diffpy.srfit.structure import constrainAsSpaceGroup
from diffpy.structure.parsers import getParser
from scipy.optimize import minimize
from scipy.optimize import least_squares
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The default minimize setting is extremely slow. The time spent is increased from several seconds to several minutes. Switch back to least_squares.

variable_names : list of str
The names of the variables to refine.
"""
for vname in variable_names:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Check before applying variables.

self.adapter = PDFAdapter()
self.data_for_plot = {}

def validate_inputs(self):
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Check inputs before running.

@ycexiao ycexiao marked this pull request as ready for review February 4, 2026 03:14
@sbillinge sbillinge merged commit 07bf29e into PDF-bl:main Feb 4, 2026
3 checks passed
@ycexiao ycexiao mentioned this pull request Feb 4, 2026
2 tasks
@ycexiao ycexiao deleted the test-runner branch February 18, 2026 16:38
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