From 9b7b4d94ae0f29c8b4516d1ba7d5266da1e8017b Mon Sep 17 00:00:00 2001 From: Martin Reinecke Date: Wed, 4 Jul 2018 09:49:09 +0200 Subject: [PATCH] cosmetics --- nifty5/models/model.py | 8 ++++---- nifty5/operators/selection_operator.py | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/nifty5/models/model.py b/nifty5/models/model.py index ca533b77..6a0764af 100644 --- a/nifty5/models/model.py +++ b/nifty5/models/model.py @@ -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. """ diff --git a/nifty5/operators/selection_operator.py b/nifty5/operators/selection_operator.py index 4d88e442..8723d027 100644 --- a/nifty5/operators/selection_operator.py +++ b/nifty5/operators/selection_operator.py @@ -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): -- GitLab