Skip to content
GitLab
Menu
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
2eba2b6e
Commit
2eba2b6e
authored
Nov 28, 2018
by
Martin Reinecke
Browse files
make FieldAdapter visible as before, to avoid breaking user code
parent
33060bbe
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/__init__.py
View file @
2eba2b6e
...
...
@@ -48,7 +48,7 @@ from .operators.block_diagonal_operator import BlockDiagonalOperator
from
.operators.outer_product_operator
import
OuterProduct
from
.operators.simple_linear_operators
import
(
VdotOperator
,
ConjugationOperator
,
Realizer
,
ducktape
,
GeometryRemover
,
NullOperator
)
FieldAdapter
,
ducktape
,
GeometryRemover
,
NullOperator
)
from
.operators.energy_operators
import
(
EnergyOperator
,
GaussianEnergy
,
PoissonianEnergy
,
InverseGammaLikelihood
,
BernoulliEnergy
,
Hamiltonian
,
SampledKullbachLeiblerDivergence
)
...
...
nifty5/operators/simple_linear_operators.py
View file @
2eba2b6e
...
...
@@ -62,7 +62,7 @@ class Realizer(EndomorphicOperator):
return
x
.
real
class
_
FieldAdapter
(
LinearOperator
):
class
FieldAdapter
(
LinearOperator
):
"""Operator for conversion between Fields and MultiFields.
Parameters
...
...
@@ -120,7 +120,7 @@ def ducktape(left, right, name):
left
=
left
.
domain
else
:
left
=
makeDomain
(
left
)
return
_
FieldAdapter
(
left
,
name
)
return
FieldAdapter
(
left
,
name
)
class
GeometryRemover
(
LinearOperator
):
...
...
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