Skip to content
Snippets Groups Projects
Commit 9cc4c2a6 authored by Philipp Arras's avatar Philipp Arras
Browse files

Typo

parent 09b16aff
No related branches found
No related tags found
No related merge requests found
...@@ -170,11 +170,11 @@ class Linearization(object): ...@@ -170,11 +170,11 @@ class Linearization(object):
@staticmethod @staticmethod
def make_partial_var(field, constants, want_metric=False): def make_partial_var(field, constants, want_metric=False):
from .operators.scaling_operator import ScalingOperator from .operators.scaling_operator import ScalingOperator
from .operators.simple_linear_operators import NullOperator from .operators.block_diagonal_operator import BlockDiagonalOperator
if len(constants) == 0: if len(constants) == 0:
return Linearization.make_var(field, want_metric) return Linearization.make_var(field, want_metric)
else: else:
ops = [ScalingOperator(0. if key in constants else 1., dom) ops = [ScalingOperator(0. if key in constants else 1., dom)
for key, dom in field.domain.items()] for key, dom in field.domain.items()]
bdop = BlockDiagonalOperator(fielld.domain, tuple(ops)) bdop = BlockDiagonalOperator(field.domain, tuple(ops))
return Linearization(field, bdop, want_metric=want_metric) return Linearization(field, bdop, want_metric=want_metric)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment