vector icon indicating copy to clipboard operation
vector copied to clipboard

Throw a useful error on implicit upcast if `ProjectClass*D` is not defined by a vector subclass

Open Saransh-cpp opened this issue 7 months ago • 0 comments

Is this a way to signal that there is no 4D interpretation of VertexArray? (which is true)

I can just remove L139, but vector would throw an error saying something like "ProjectionClass4D is not defined for VertexArray" if a user tries an operation that needs converting the array to a 4D vector. The error does not tell the user what they are doing wrong, but I am hoping that not a lot of users will try converting it to 4D?

I think it might make sense to raise an error if a user tries to write a code that requires implicit upcast from 3D point to 4D

Originally posted by @nsmith- in https://github.com/CoffeaTeam/coffea/pull/991#discussion_r1670580026

Saransh-cpp avatar Jul 19 '24 09:07 Saransh-cpp