From 3ac6c6be636db4c858d8ac61c691581913249cb0 Mon Sep 17 00:00:00 2001 From: Andrew Davis Date: Tue, 18 Dec 2018 16:33:51 +0000 Subject: [PATCH] Further review comments and errors fixed --- include/openmc/math_functions.h | 3 +-- openmc/stats/univariate.py | 4 ++-- tests/unit_tests/test_math.py | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/openmc/math_functions.h b/include/openmc/math_functions.h index a6654dd058..6f94ee4cad 100644 --- a/include/openmc/math_functions.h +++ b/include/openmc/math_functions.h @@ -181,9 +181,8 @@ extern "C" double normal_variate(double mean, double std_dev); //! Samples an energy from the Muir (Gaussian) energy-dependent distribution. //! //! This is another form of the Gaussian distribution but with more easily +//! modifiable parameters //! https://permalink.lanl.gov/object/tr?what=info:lanl-repo/lareport/LA-05411-MS -//! -//! modifyable parameters //! //! @param e0 peak neutron energy [eV] //! @param m_rat ratio of the fusion reactants to AMU diff --git a/openmc/stats/univariate.py b/openmc/stats/univariate.py index f1565dbbf9..f0ce6f83fe 100644 --- a/openmc/stats/univariate.py +++ b/openmc/stats/univariate.py @@ -312,8 +312,8 @@ class Normal(Univariate): r"""Normally distributed sampling. The Normal Distribution is characterized by two parameters - :math:`\mu` and :math:`\sigma` and has density function :math: - `p(X) dX = 1/\2*sigma\sqrt{\pi} * e^{(X-\mu/\2*sigma}` + :math:`\mu` and :math:`\sigma` and has density function + :math:`p(X) dX = 1/\2*sigma\sqrt{\pi} * e^{(X-\mu/\2*sigma}` Parameters ---------- diff --git a/tests/unit_tests/test_math.py b/tests/unit_tests/test_math.py index 5b8af979af..1397d87eb7 100644 --- a/tests/unit_tests/test_math.py +++ b/tests/unit_tests/test_math.py @@ -4,6 +4,7 @@ import scipy as sp import openmc import openmc.capi +import pytest def test_t_percentile(): # Permutations include 1 DoF, 2 DoF, and > 2 DoF