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
484b66fd
Commit
484b66fd
authored
Sep 06, 2019
by
Philipp Arras
Browse files
Export PartialExtractor
parent
0700b9ca
Pipeline
#60185
failed with stages
in 5 minutes and 47 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/__init__.py
View file @
484b66fd
...
...
@@ -46,7 +46,7 @@ from .operators.outer_product_operator import OuterProduct
from
.operators.simple_linear_operators
import
(
VdotOperator
,
ConjugationOperator
,
Realizer
,
FieldAdapter
,
ducktape
,
GeometryRemover
,
NullOperator
,
MatrixProductOperator
)
MatrixProductOperator
,
PartialExtractor
)
from
.operators.value_inserter
import
ValueInserter
from
.operators.energy_operators
import
(
EnergyOperator
,
GaussianEnergy
,
PoissonianEnergy
,
InverseGammaLikelihood
,
...
...
nifty5/operators/simple_linear_operators.py
View file @
484b66fd
...
...
@@ -326,7 +326,7 @@ class NullOperator(LinearOperator):
return
self
.
_nullfield
(
self
.
_tgt
(
mode
))
class
_
PartialExtractor
(
LinearOperator
):
class
PartialExtractor
(
LinearOperator
):
def
__init__
(
self
,
domain
,
target
):
if
not
isinstance
(
domain
,
MultiDomain
):
raise
TypeError
(
"MultiDomain expected"
)
...
...
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