Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
9b7b4d94
Commit
9b7b4d94
authored
Jul 04, 2018
by
Martin Reinecke
Browse files
cosmetics
parent
8b2c1673
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/models/model.py
View file @
9b7b4d94
...
...
@@ -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, Mul
i
tField)
- value according to its modelfunction A. A(position)
- position in parameter
space. (Field, Mult
i
Field)
- value according to its model
function A. A(position)
- Jacobian of the model function at the current position.
Parameters
----------
position : Field, Mul
i
tField
position : Field, Mult
i
Field
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.
"""
...
...
nifty5/operators/selection_operator.py
View file @
9b7b4d94
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment