Resolved @paulromano comments

This commit is contained in:
Adam Nelson 2016-11-09 18:19:13 -05:00
parent ac8909fa29
commit 93597752f2
2 changed files with 10 additions and 8 deletions

View file

@ -407,7 +407,7 @@ class Combination(EqualityMixin):
Parameters
----------
functions : Iterable of Callable
Functions which are to be added together
Functions to combine according to operations
operations : Iterable of numpy.ufunc
Operations to perform between functions; note that the standard order
of operations will not be followed, but can be simulated by
@ -418,9 +418,12 @@ class Combination(EqualityMixin):
Attributes
----------
functions : Iterable of Callable
Functions which are to be added together
Functions to combine according to operations
operations : Iterable of numpy.ufunc
Operations to perform between functions
Operations to perform between functions; note that the standard order
of operations will not be followed, but can be simulated by
combinations of Combination objects. The operations parameter must have
a length one less than the number of functions.
"""

View file

@ -22,13 +22,12 @@ class DataLibrary(EqualityMixin):
def __init__(self):
self.libraries = []
def get_by_materials(self, value):
"""Access a library entry by passing a value of the 'materials'
attribute of the library entry.
def get_by_material(self, value):
"""Return the library dictionary containing a given material.
Returns
-------
library : dict
library : dict or None
Dictionary summarizing cross section data from a single file;
the dictionary has keys 'path', 'type', and 'materials'.
@ -107,7 +106,7 @@ class DataLibrary(EqualityMixin):
Returns
-------
data : openmc.data.DataLibrary
openmc.data.DataLibrary object initialized from the provided XML
Data library object initialized from the provided XML
"""