Merge pull request #1959 from shimwell/ww_typo_fix

typo corrections in error messages
This commit is contained in:
Paul Romano 2022-02-02 09:40:33 -06:00 committed by GitHub
commit 0804cc0867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -101,11 +101,11 @@ class WeightWindows(IDManagerMixin):
cv.check_length('Lower window bounds', self.lower_ww_bounds, len(self.energy_bins))
if upper_ww_bounds is not None and upper_bound_ratio:
raise ValueError("Exactly one of uppwer_ww_bounds and "
raise ValueError("Exactly one of upper_ww_bounds and "
"upper_bound_ratio must be present.")
if upper_ww_bounds is None and upper_bound_ratio is None:
raise ValueError("Exactly one of uppwer_ww_bounds and "
raise ValueError("Exactly one of upper_ww_bounds and "
"upper_bound_ratio must be present.")
if upper_bound_ratio:
@ -117,7 +117,7 @@ class WeightWindows(IDManagerMixin):
self.upper_ww_bounds = upper_ww_bounds
if len(self.lower_ww_bounds) != len(self.upper_ww_bounds):
raise ValueError('Size of the lower and upper weight window bounds'
raise ValueError('Size of the lower and upper weight window bounds '
'do not match')
self.survival_ratio = survival_ratio