Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion discretize/operators/differential_operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy as np
from scipy import sparse as sp
import warnings
from discretize.base import BaseMesh
from discretize.utils import (
sdiag,
speye,
Expand Down Expand Up @@ -128,7 +129,7 @@ def _ddxCellGradBC(n, bc):
return D


class DiffOperators(object):
class DiffOperators(BaseMesh):
"""Class used for creating differential and averaging operators.

``DiffOperators`` is a class for managing the construction of
Expand Down
3 changes: 2 additions & 1 deletion discretize/operators/inner_products.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
"""Construct inner product operators for tensor like meshes."""
from scipy import sparse as sp
from discretize.base import BaseMesh
from discretize.utils import (
sub2ind,
sdiag,
Expand All @@ -17,7 +18,7 @@
import warnings


class InnerProducts(object):
class InnerProducts(BaseMesh):
"""Class for constructing inner product matrices.

``InnerProducts`` is a mixin class for constructing inner product matrices,
Expand Down
2 changes: 2 additions & 0 deletions discretize/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ class for the given operator. Within the test class, the user sets the parameter
for the convergence testing and defines a method :py:attr:`~OrderTest.getError`
which defines the error as a norm of the residual (see example).

OrderTest inherits from :class:`unittest.TestCase`.

Parameters
----------
name : str
Expand Down
17 changes: 17 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import subprocess
from sphinx_gallery.sorting import FileNameSortKey
import shutil
from collections import defaultdict

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -54,6 +55,22 @@

numpydoc_attributes_as_param_list = False

numpydoc_show_inherited_class_members = {
"discretize.base.BaseMesh": False,
"discretize.base.BaseRegularMesh": False,
"discretize.base.BaseRectangularMesh": False,
"discretize.base.BaseTensorMesh": False,
"discretize.operators.DiffOperators": False,
"discretize.operators.InnerProducts": False,
"discretize.mixins.TensorMeshIO": False,
"discretize.mixins.TreeMeshIO": False,
"discretize.mixins.InterfaceMPL": False,
"discretize.mixins.InterfaceVTK": False,
"discretize.mixins.InterfaceOMF": False,
"discretize.mixins.Slicer": False,
"discretize.tests.OrderTest": False,
}

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

Expand Down
2 changes: 1 addition & 1 deletion docs/release/0.8.1-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This patch release, in addition to some small bug fixes and runtime improvements
also implements some missing functionality for cylindrical meshes.

``CylindricalMesh``
---------------
-------------------
The big news is that 3D cylindrical meshes can now be output to a vtk format, which
represents the wedges and arced cells as rational bezier curves in an unstructured vtk
mesh.
Expand Down
4 changes: 2 additions & 2 deletions docs/release/0.8.2-notes.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.. currentmodule:: discretize

.. _0.8.1_notes:
.. _0.8.2_notes:

===================================
``discretize`` 0.8.1 Release Notes
``discretize`` 0.8.2 Release Notes
===================================

August 17, 2022
Expand Down
2 changes: 1 addition & 1 deletion environment_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
- sphinx-toolbox
- sphinxcontrib-apidoc
- pydata-sphinx-theme
- numpydoc
- numpydoc>=1.5
- pillow
- sympy
- wheel
Expand Down
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ wheel
twine
vtk
pyvista>=0.20.1
numpydoc
numpydoc>=1.5
nbsphinx
omf
matplotlib
Expand Down