Minor styling fix in Material.py

change `E` to `e` for scientific notation.
This commit is contained in:
Olek 2022-08-03 17:46:26 -05:00 committed by GitHub
parent 8a6dc7e9f8
commit 15f66ed50a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -861,7 +861,7 @@ class Material(IDManagerMixin):
elif self.density_units == 'atom/b-cm':
density = self.density
elif self.density_units == 'atom/cm3' or self.density_units == 'atom/cc':
density = 1.E-24 * self.density
density = 1.e-24 * self.density
# For ease of processing split out nuc, nuc_density,
# and nuc_density_type into separate arrays
@ -897,7 +897,7 @@ class Material(IDManagerMixin):
# Convert the mass density to an atom density
if not density_in_atom:
density = -density / self.average_molar_mass * 1.E-24 \
density = -density / self.average_molar_mass * 1.e-24 \
* openmc.data.AVOGADRO
nuc_densities = density * nuc_densities