Commit 484b66fd authored by Philipp Arras's avatar Philipp Arras
Browse files

Export PartialExtractor

parent 0700b9ca
Pipeline #60185 failed with stages
in 5 minutes and 47 seconds
...@@ -46,7 +46,7 @@ from .operators.outer_product_operator import OuterProduct ...@@ -46,7 +46,7 @@ from .operators.outer_product_operator import OuterProduct
from .operators.simple_linear_operators import ( from .operators.simple_linear_operators import (
VdotOperator, ConjugationOperator, Realizer, VdotOperator, ConjugationOperator, Realizer,
FieldAdapter, ducktape, GeometryRemover, NullOperator, FieldAdapter, ducktape, GeometryRemover, NullOperator,
MatrixProductOperator) MatrixProductOperator, PartialExtractor)
from .operators.value_inserter import ValueInserter from .operators.value_inserter import ValueInserter
from .operators.energy_operators import ( from .operators.energy_operators import (
EnergyOperator, GaussianEnergy, PoissonianEnergy, InverseGammaLikelihood, EnergyOperator, GaussianEnergy, PoissonianEnergy, InverseGammaLikelihood,
...@@ -326,7 +326,7 @@ class NullOperator(LinearOperator): ...@@ -326,7 +326,7 @@ class NullOperator(LinearOperator):
return self._nullfield(self._tgt(mode)) return self._nullfield(self._tgt(mode))
class _PartialExtractor(LinearOperator): class PartialExtractor(LinearOperator):
def __init__(self, domain, target): def __init__(self, domain, target):
if not isinstance(domain, MultiDomain): if not isinstance(domain, MultiDomain):
raise TypeError("MultiDomain expected") raise TypeError("MultiDomain expected")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment