mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Add missing f prefix for an f-string
This commit is contained in:
parent
5efa3dce63
commit
6c4554f1c7
2 changed files with 4 additions and 2 deletions
|
|
@ -559,7 +559,9 @@ class Decay(EqualityMixin):
|
|||
raise NotImplementedError("Multiple interpolation regions: {name}, {particle}")
|
||||
interpolation = INTERPOLATION_SCHEME[f.interpolation[0]]
|
||||
if interpolation not in ('histogram', 'linear-linear'):
|
||||
raise NotImplementedError("Continuous spectra with {interpolation} interpolation ({name}, {particle}) not supported")
|
||||
raise NotImplementedError(
|
||||
f"Continuous spectra with {interpolation} interpolation "
|
||||
f"({name}, {particle}) not supported")
|
||||
|
||||
intensity = spectra['continuous_normalization'].n
|
||||
rates = decay_constant * intensity * f.y
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ Tabular::Tabular(pugi::xml_node node)
|
|||
interp_ = Interpolation::lin_lin;
|
||||
} else {
|
||||
openmc::fatal_error(
|
||||
"Unknown interpolation type for distribution: " + temp);
|
||||
"Unsupported interpolation type for distribution: " + temp);
|
||||
}
|
||||
} else {
|
||||
interp_ = Interpolation::histogram;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue