Closed whoburg closed 5 years ago
(copied over from the PR)
Note that the errors occur because of string access at the Widget level, which is not best practice - if this example emerged from your daily use of GPkit, I would encourage using docstring variable tables and/or method access (e.g. self.subA.m) instead!
This is best described by a MWE. As a user I want to be able to make a Model with multiple submodels (all instances of the same submodel class) and then pull out variables of those submodels using
Model.varkeys
andModel.variables_byname
. Here's my MWE: