Closed jack-dunham closed 1 month ago
My apologies for the slow reply.
It indeed looks like I overlooked this use-case when I changed this. I will try and fix this in the master, and then attempt to backport it to 0.12.5 as a hotfix.
This should now be fixed as of version v0.12.6, tagged as a patch release such that you should be able to automatically update. I hope this resolves your issues, feel free to ping me if anything is still missing.
Since v0.12.5, attempting to construct
TensorMap
with data of a different (but compatible) shape to that specified by the provided codomain and domain will result in an error when the space is non-trivial.This works fine for
ComplexSpace
; the data automatically gets reshaped to the shape of destinationTensorMap
:As this is an inconsistency between types of
IndexSpace
and a breaking change since v0.12.4, would it be convenient to reshape the data within the constructor before callingproject_symmetric!
?Thanks for all the work on this great package, Jack