Commit 9b7b4d94 authored by Martin Reinecke's avatar Martin Reinecke

cosmetics

parent 8b2c1673
...@@ -26,19 +26,19 @@ from ..utilities import NiftyMetaBase ...@@ -26,19 +26,19 @@ from ..utilities import NiftyMetaBase
class Model(NiftyMetaBase()): class Model(NiftyMetaBase()):
""" """
The Model object is an implementation of a * which knows: The Model object is an implementation of a * which knows:
- position in parameterspace. (Field, MulitField) - position in parameter space. (Field, MultiField)
- value according to its modelfunction A. A(position) - value according to its model function A. A(position)
- Jacobian of the model function at the current position. - Jacobian of the model function at the current position.
Parameters Parameters
---------- ----------
position : Field, MulitField position : Field, MultiField
The input parameter of the model The input parameter of the model
Notes Notes
----- -----
An instance of the model class knows its position, value and Jacobian. An instance of the model class knows its position, value and Jacobian.
One can 'jump' to a new position, with the help of the 'at' method, whereby One can 'jump' to a new position with the help of the 'at' method, whereby
one automatically gets the value and Jacobian of the model. The 'at' method one automatically gets the value and Jacobian of the model. The 'at' method
creates a new instance of the class. creates a new instance of the class.
""" """
......
...@@ -34,7 +34,6 @@ class SelectionOperator(LinearOperator): ...@@ -34,7 +34,6 @@ class SelectionOperator(LinearOperator):
from ..multi.multi_domain import MultiDomain from ..multi.multi_domain import MultiDomain
if not isinstance(domain, MultiDomain): if not isinstance(domain, MultiDomain):
raise TypeError("Domain must be a MultiDomain") raise TypeError("Domain must be a MultiDomain")
self._target = domain[key]
self._domain = domain self._domain = domain
self._key = key self._key = key
...@@ -44,7 +43,7 @@ class SelectionOperator(LinearOperator): ...@@ -44,7 +43,7 @@ class SelectionOperator(LinearOperator):
@property @property
def target(self): def target(self):
return self._target return self._domain[self._key]
@property @property
def capability(self): def capability(self):
......
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