Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix typo
  • Loading branch information
ycexiao committed Aug 20, 2025
commit 9832900b2a266e6d75aeeab33a0be49e53c1e8b7
4 changes: 2 additions & 2 deletions src/diffpy/morph/refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def _residual(self, pvals):
raise ValueError(
f"\nNumber of shared grid points: {len(rvec)}\n"

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Print the size of the function and the number of parameters.

f"Number of parameters: {len(pvals)}\n"
"Not enough shared grid points between morphed function "
"between morphed function and target function to fit "
"Not enough shared grid points "
"between the morphed function and the target function to fit "
"the chosen parameters.\n"
"Please make sure the overlapping domain between the morphed "
"function and the target function is sufficiently large, or "
Expand Down
4 changes: 2 additions & 2 deletions tests/test_refine.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ def test_refine_grid_bad(self, user_filesystem):
expected_error_message = (
"\nNumber of shared grid points: 2\n"
"Number of parameters: 3\n"
"Not enough shared grid points between morphed function "
"between morphed function and target function to fit "
"Not enough shared grid points "
"between the morphed function and the target function to fit "
"the chosen parameters.\n"
"Please make sure the overlapping domain between the morphed "
"function and the target function is sufficiently large, or "
Expand Down
Loading