Commit e01faa70 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix creating a ScalingOperator from a complex value

parent e71ecace
Pipeline #74589 passed with stages
in 20 minutes and 31 seconds
......@@ -350,7 +350,7 @@ def makeOp(input, dom=None):
if not dom == input.domain:
raise ValueError("domain mismatch")
if input.domain is DomainTuple.scalar_domain():
return ScalingOperator(input.domain, float(input.val))
return ScalingOperator(input.domain, input.val[()])
if isinstance(input, Field):
return DiagonalOperator(input)
if isinstance(input, MultiField):
......
Supports Markdown
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