Will set the element length to the variable name, eg.
>>> Dev.lengths
[50.0, 'lMMI_2x2\n\x00', 50.0]
the 2nd is a variable
This results in get_length() for the whole dev failing when it tries to add the lengths together. This causes Device.get_field() to fail since it need the total length of the device for the calc-Z-fields function.
>>> outMMI.lengths[1]+0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: cannot concatenate 'str' and 'int' objects
Will set the element length to the variable name, eg.
the 2nd is a variable This results in
get_length()
for the whole dev failing when it tries to add the lengths together. This causesDevice.get_field()
to fail since it need the total length of the device for the calc-Z-fields function.