From dbfd6387b29d248bbfa6b812d00d27333940a7d5 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 4 Mar 2026 23:37:47 -0600 Subject: [PATCH] Fix two docstrings that should have r prefix (#3851) --- openmc/data/dose/mass_attenuation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openmc/data/dose/mass_attenuation.py b/openmc/data/dose/mass_attenuation.py index a6cbbee2bc..c4260480bf 100644 --- a/openmc/data/dose/mass_attenuation.py +++ b/openmc/data/dose/mass_attenuation.py @@ -62,7 +62,7 @@ _MUEN_TABLES = { def mass_energy_absorption_coefficient( material: str, data_source: str = "nist126" ) -> Tabulated1D: - """Return the mass energy-absorption coefficient as a function of energy. + r"""Return the mass energy-absorption coefficient as a function of energy. The mass energy-absorption coefficient, :math:`\mu_\text{en}/\rho`, is defined as the fraction of incident photon energy absorbed in a material per @@ -108,7 +108,7 @@ _MASS_ATTENUATION: dict[int, object] = {} def mass_attenuation_coefficient(element): - """Return the photon mass attenuation coefficient as a function of energy. + r"""Return the photon mass attenuation coefficient as a function of energy. The mass energy-absorption coefficient, :math:`\mu_\text{en}/\rho`, is defined as the fraction of incident photon energy absorbed in a material per