Some added documentation/cleanup of Python API files.

This commit is contained in:
Patrick Shriwise 2020-03-19 13:18:02 -05:00
parent afdf5a9f89
commit 46b345be5a
2 changed files with 4 additions and 2 deletions

View file

@ -750,7 +750,7 @@ class MeshFilter(Filter):
cv.check_type('filter mesh', mesh, openmc.MeshBase)
self._mesh = mesh
if isinstance(mesh, openmc.UnstructuredMesh):
self.bins = [(n, 1, 1) for n in range(1, len(mesh.volumes) + 1)]
self.bins = list(range(len(mesh.volumes)))
else:
self.bins = list(mesh.indices)

View file

@ -598,6 +598,8 @@ class UnstructuredMesh(MeshBase):
Unique identifier for the mesh
name : str
Name of the mesh
filename : str
Location of the unstructured mesh file
Attributes
----------
@ -681,7 +683,7 @@ class UnstructuredMesh(MeshBase):
Returns
-------
element : xml.etree.ElementTree.Element
XML element containing the mesh data
XML element containing mesh data
"""