Commit 86945e26 authored by Lukas Platz's avatar Lukas Platz
Browse files

unified docstring terminology for structured_domain volumes

parent c6c876cf
......@@ -30,7 +30,7 @@ class StructuredDomain(Domain):
def scalar_dvol(self):
"""float or None : uniform cell volume, if applicable
"""float or None : uniform pixel volume, if applicable
Returns the volume factors of this domain as a floating
point scalar, if the volume factors are all identical, otherwise
......@@ -40,7 +40,7 @@ class StructuredDomain(Domain):
def dvol(self):
"""float or numpy.ndarray(dtype=float): Volume factors
"""float or numpy.ndarray(dtype=float): pixel volume(s)
Returns the volume factors of this domain, either as a floating
point scalar (if the volume factors are all identical) or as a
......@@ -284,12 +284,12 @@ class Field(object):
return res
def weight(self, power=1, spaces=None):
"""Weights the pixels of `self` with their invidual pixel-volume.
"""Weights the pixels of `self` with their invidual pixel volumes.
power : number
The pixels get weighted with the volume-factor**power.
The pixel values get multiplied with their volume-factor**power.
spaces : None, int or tuple of int
Determines on which sub-domain the operation takes place.
Supports Markdown
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