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

cosmetics

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