From 46b345be5abfbf30f6ec679d497ad0d23707b38a Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 19 Mar 2020 13:18:02 -0500 Subject: [PATCH] Some added documentation/cleanup of Python API files. --- openmc/filter.py | 2 +- openmc/mesh.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openmc/filter.py b/openmc/filter.py index f9d93d91a2..d9c0470722 100644 --- a/openmc/filter.py +++ b/openmc/filter.py @@ -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) diff --git a/openmc/mesh.py b/openmc/mesh.py index f8e1bc6b22..fb41b06205 100644 --- a/openmc/mesh.py +++ b/openmc/mesh.py @@ -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 """