Skip to content

Commit

Permalink
amend clarity of warnings when too few peaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-bridger committed Jan 16, 2025
1 parent ceda6fc commit 23abc08
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def fobj(x):
ws.sample().getOrientedLattice().setError(*err)
if n_peaks[iws] < _MIN_NUM_INDEXED_PEAKS:
logger.warning(
f"Workspace: {wsname}, has only {n_peaks[iws]} indexed peaks, fewer than the desired {_MIN_NUM_INDEXED_PEAKS}"
f"Workspace: {wsname}, has only {n_peaks[iws]} indexed peaks after optimisation, "
f"fewer than the desired {_MIN_NUM_INDEXED_PEAKS}"
)
logger.notice(
f"Lattice parameters successfully refined for workspaces: {ws_list}\n"
Expand Down Expand Up @@ -216,8 +217,8 @@ def find_initial_indexing(self, a, b, c, alpha, beta, gamma, ws_list):
# otherwise warn the user
else:
logger.warning(
f"Fewer than the desired {_MIN_NUM_INDEXED_PEAKS} peaks were indexed for Workspace {iws}. "
f"Workspace {iws} removed"
f"Fewer than the desired {_MIN_NUM_INDEXED_PEAKS} peaks were indexed by the reference UB "
f"for Workspace {iws}. Workspace will NOT be included in the optimisation"
)
if len(valid_ws_list) < 2:
if n_ws_indexed_by_ref_ub <= 1:
Expand Down

0 comments on commit 23abc08

Please sign in to comment.