VECTOR:
definition: A vector in 3D geometric space
shape: [3]
type: double
The shape of the box should be (3) but at the moment generator does not accept this value; because the given value for default has dimension of (3, 3).
The generator needs a patch to consider both shapes defined in the higher level CUDS structure along with the shape of the CUBA type at the same time.
I think we have to add the shape defined in BOX to the shape defined in the cuba.yaml file for VECTOR and then validate the value for default against it. Therefore, a shape of (3) for BASIS.CUBA.VECTOR would imply a real shape of (3, 3) for it.
Consider definition of the Box:
and the VECTOR:
The shape of the box should be
(3)
but at the moment generator does not accept this value; because the given value fordefault
has dimension of(3, 3)
.The generator needs a patch to consider both shapes defined in the higher level CUDS structure along with the shape of the CUBA type at the same time.
I think we have to add the shape defined in BOX to the shape defined in the cuba.yaml file for VECTOR and then validate the value for default against it. Therefore, a shape of
(3)
forBASIS.CUBA.VECTOR
would imply a real shape of(3, 3)
for it.This issue was first discussed here.