Better error reporting on algebra extents not matching matrix extent?

tbates's picture
Project:OpenMx
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi,
currently a model can be built with a run time error like this
> ACEOrdFit = mxRun(ACEOrdModel, intervals=F)
Error: The algebra 'thresholdsMatrix' in model 'ACE' generated the error message: length of 'dimnames' [1] not equal to array extent

It would be very helpful if the error reported the size of matrix that was being dimensioned, and the dimnames provided.

e.g. Error: The algebra 'thresholdsMatrix' in model 'ACE' generated the error message: length of 'dimnames' [1] not equal to array extent: You are giving dimnames to a 3:4 matrix, but provided 2:4 dimnames:
c("X","X")
c("v1T1","v2T1","v1T2","v2T2")