ProductSpace does not have attribute "is_real"
mehrhardt opened this issue · comments
I could not come up with a minimal example which causes the same error I see in a much more complicated example, but I guess that @adler-j and @kohr-h know what I am talking about and what the issue is.
Here is the error message:
File "<ipython-input-43-c741c95fb6ac>", line 1, in <module>
cond = B.norm(estimate=True)
File "/home/me404/store/repositories/github_myODL/odl/operator/operator.py", line 743, in norm
return power_method_opnorm(self, **kwargs)
File "/home/me404/store/repositories/github_myODL/odl/operator/oputils.py", line 242, in power_method_opnorm
op.adjoint(tmp, out=x)
File "/home/me404/store/repositories/github_myODL/odl/operator/pspace_ops.py", line 866, in adjoint
return ReductionOperator(*[op.adjoint for op in self.operators])
File "/home/me404/store/repositories/github_myODL/odl/operator/operator.py", line 2193, in adjoint
if self.vector.space.is_real:
AttributeError: 'ProductSpace' object has no attribute 'is_real'
Somewhere in ODL is the assumption that a 'Space' has an attribute 'is_real' which interestingly 'ProductSpace's don't seem to have.
Should have been added here: #1339
Doy you have the latest version of ODL?
Thanks for pointing this out. With the most recent version it works perfectly fine!