Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
58519430
Commit
58519430
authored
Jun 28, 2018
by
Lukas Platz
Browse files
added docstring for SelectionOperator
parent
2824435b
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/operators/selection_operator.py
View file @
58519430
...
...
@@ -20,6 +20,16 @@ from ..operators import LinearOperator
class
SelectionOperator
(
LinearOperator
):
"""Extracts from a MultiField a copy of the Field
living on the subdomain selected by `key`.
Parameters
----------
domain : :class:`MultiDomain`
Domain of the MultiFields to be acted on
key : :class:`str`
String identifier of the wanted subdomain
"""
def
__init__
(
self
,
domain
,
key
):
from
..multi
import
MultiDomain
if
not
isinstance
(
domain
,
MultiDomain
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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