Skip to content

Commit

Permalink
fix: bug with intensities input to get_spectra_fits
Browse files Browse the repository at this point in the history
  • Loading branch information
keara-soloway committed Oct 24, 2024
1 parent 12b0be0 commit 0928b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CHAP/edd/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -3458,7 +3458,7 @@ def _strain_analysis(self, strain_analysis_config):
# Perform the fit
self.logger.info(f'Fitting detector {detector.id} ...')
uniform_results, unconstrained_results = get_spectra_fits(
np.squeeze(intensities[mask]), energies[mask],
np.squeeze(intensities), energies[mask],
peak_locations[use_peaks], detector)
if intensities.shape[0] == 1:
uniform_results = {k: [v] for k, v in uniform_results.items()}
Expand Down

0 comments on commit 0928b12

Please sign in to comment.