Cosmetic fixes from PullRequest [2019-12-05]

This commit is contained in:
PullRequestOpen 2019-12-05 22:22:43 -06:00
parent 8fcd74b14b
commit 6d0aa86cef
39 changed files with 247 additions and 222 deletions

View file

@ -2,7 +2,7 @@ import numpy as np
def linearize(x, f, tolerance=0.001):
"""Return a tabulated representation of a function of one variable.
"""Returns a tabulated representation of a one-variable function
Parameters
----------

View file

@ -4,9 +4,8 @@ from numbers import Real, Integral
import numpy as np
import openmc.checkvalue as cv
from openmc.stats import Tabular, Univariate, Discrete, Mixture
from openmc.stats import Tabular, Univariate, Discrete
from .angle_energy import AngleEnergy
from .function import INTERPOLATION_SCHEME
from .endf import get_tab2_record, get_tab1_record
@ -122,7 +121,7 @@ class LaboratoryAngleEnergy(AngleEnergy):
mu = []
energy_out = []
for i in range(ne):
params, tab2mu = get_tab2_record(file_obj)
params, _ = get_tab2_record(file_obj)
energy[i] = params[1]
n_mu = params[5]
mu_i = np.zeros(n_mu)

View file

@ -6,7 +6,6 @@ import h5py
from openmc.mixin import EqualityMixin
from openmc._xml import clean_indentation
from openmc.checkvalue import check_type
class DataLibrary(EqualityMixin):

View file

@ -85,7 +85,7 @@ class IncidentNeutron(EqualityMixin):
resonance_covariance : openmc.data.ResonanceCovariance or None
Covariance for resonance parameters
temperatures : list of str
List of string representations the temperatures of the target nuclide
List of string representations of the temperatures of the target nuclide
in the data set. The temperatures are strings of the temperature,
rounded to the nearest integer; e.g., '294K'
kTs : Iterable of float
@ -410,7 +410,7 @@ class IncidentNeutron(EqualityMixin):
----------
path : str
Path to write HDF5 file to
mode : {'r', r+', 'w', 'x', 'a'}
mode : {'r', 'r+', 'w', 'x', 'a'}
Mode that is used to open the HDF5 file. This is the second argument
to the :class:`h5py.File` constructor.
libver : {'earliest', 'latest'}

View file

@ -788,7 +788,7 @@ class IncidentPhoton(EqualityMixin):
----------
path : str
Path to write HDF5 file to
mode : {'r', r+', 'w', 'x', 'a'}
mode : {'r', 'r+', 'w', 'x', 'a'}
Mode that is used to open the HDF5 file. This is the second argument
to the :class:`h5py.File` constructor.
libver : {'earliest', 'latest'}

View file

@ -17,7 +17,7 @@ class Product(EqualityMixin):
Parameters
----------
particle : str, optional
What particle the reaction product is. Defaults to 'neutron'.
The particle type of the reaction product. Defaults to 'neutron'.
Attributes
----------