Closed 1ozturkbe closed 4 years ago
yup this is to make VectorizableVariable work. a bit hacky! but for now hasattr(a, "key") and not a.key.shape
might work for ya. In general I wouldn't recommend doing anything that requires variable objects: instead make functions that accept nomials or accept varkeys, and pull the keys from Variables
This is some odd behavior which should probably be addressed. Here is an MWE:
Same issue occurs for VectorVariables. Kind of a pain when you try to muck with GPkit objects.