Skip to content

Commit

Permalink
more diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 19, 2024
1 parent 4499c99 commit cbc42bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/depiction/calibration/perform_calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ def _validate_per_spectra_array(self, array: DataArray, coordinates_2d) -> None:
errors.append("Mismatch in y values")
if not np.array_equal(array.i.values, np.arange(len(array.i))):
errors.append("Mismatch in i values")
logger.error(f"Expected i: values={np.arange(len(array.i))} shape={np.arange(len(array.i)).shape}")
logger.error(f"Actual i: values={array.i.values} shape={array.i.values.shape}")
if errors:
raise ValueError(errors)

Expand Down

0 comments on commit cbc42bc

Please sign in to comment.