mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge branch 'function' into plot_mat
This commit is contained in:
commit
cf8df5e50c
2 changed files with 10 additions and 8 deletions
|
|
@ -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.
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue