Commit d53ebdde authored by Lukas Platz's avatar Lukas Platz
Browse files

added deprecation warning to docstring

parent 96e12d4b
Pipeline #62679 passed with stages
in 7 minutes and 33 seconds
......@@ -234,6 +234,8 @@ class Field(object):
def scalar_weight(self, spaces=None):
"""Returns the uniform volume element for a sub-domain of `self`.
DEPRECATED! Use `self.domain.scalar_weight` instead.
Parameters
----------
spaces : int, tuple of int or None
......@@ -251,6 +253,8 @@ class Field(object):
def total_volume(self, spaces=None):
"""Returns the total volume of the field's domain or of a subspace of it.
DEPRECATED! Use `self.domain.total_volume` instead.
Parameters
----------
spaces : int, tuple of int or None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment