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

Merge branch 'fix_makeop' into 'NIFTy_6'

Fix makeOp

See merge request !457
parents e71ecace e01faa70
Pipeline #74642 passed with stages
in 30 minutes and 12 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):
......
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