mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Some added documentation/cleanup of Python API files.
This commit is contained in:
parent
afdf5a9f89
commit
46b345be5a
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue