PerVariableTransformer: ignore variables with None category

This commit is contained in:
2020-01-30 13:08:08 -06:00
parent 8fe9ff1cd8
commit a3309aa4b2
2 changed files with 3 additions and 1 deletions

View File

@@ -57,6 +57,8 @@ class PerVariableTransformer:
for var in model.component_objects(Var):
for index in var:
category = instance.get_variable_category(var, index)
if category is None:
continue
if category not in result.keys():
result[category] = []
result[category] += [(var, index)]