You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both logfile_viewer.py and lego_robot.py from your UNIT A code.
Traceback (most recent call last):
File "logfile_viewer.py", line 297, in
add_file()
File "logfile_viewer.py", line 197, in add_file
load_data()
File "logfile_viewer.py", line 254, in load_data
if logfile.world_cylinders:
AttributeError: 'LegoLogfile' object has no attribute 'world_cylinders'
Example from my cylinders.txt:
D C 364.0 -289.1 1416.8 -466.9 1747.1 244.1 1132.1 562.2 540.3 589.7 900.9 1315.2
D C 365.2 -290.0 1417.5 -467.1 1744.4 243.7 1131.6 562.0 542.7 592.4 901.6 1316.3
D C 365.2 -290.0 1419.5 -467.8 1745.1 243.8 1133.2 562.8 543.4 593.1 903.8 1319.4
D C 365.4 -290.2 1418.1 -467.3 1741.3 243.3 1131.7 562.0 542.5 592.1 901.4 1315.9
D C 364.2 -289.2 1420.2 -468.0 1742.7 243.5 1131.0 561.7 539.0 588.3 902.3 1317.2
D C 364.3 -289.3 1414.9 -466.2 1744.5 243.7 1132.2 562.3 539.8 589.2 901.1 1315.5
D C 363.8 -288.9 1418.9 -467.5 1739.0 242.9 1134.8 563.6 541.5 591.0 901.6 1316.2
D C 364.1 -289.1 1418.2 -467.3 1741.2 243.3 1134.5 563.4 542.7 592.3 901.6 1316.3
D C 364.3 -289.3 1417.1 -467.0 1743.4 243.6 1132.5 566.8 541.6 591.1 902.1 1317.0
D C 364.9 -289.8 1416.9 -462.1 1742.4 243.4 1132.3 562.3 541.3 590.8 901.6 1316.3
D C 363.3 -288.5 1419.0 -467.6 1743.0 243.5 1134.9 563.6 541.5 591.1 902.8 1318.1
D C 363.9 -289.0 1417.4 -467.1 1747.6 244.1 1134.5 563.4 540.7 590.2 901.4 1316.0
D C 364.2 -289.2 1423.0 -468.9 1744.6 243.7 1132.8 562.6 541.0 594.1 901.8 1316.5
D C 364.5 -289.4 1416.2 -466.7 1744.4 243.7 1131.2 566.1 541.3 590.8 901.3 1315.8
D C 352.8 -289.1 1402.4 -462.1 1718.8 245.5 1077.0 547.3 520.3 592.9 883.3 1324.1
D C 313.5 -289.0 1363.9 -468.1 1690.1 236.1 1051.9 546.8 490.8 591.5 852.0 1320.7
FIX
Add the following to:
class LegoLogfile(object):
def __init__(self):
self.world_cylinders = []
The text was updated successfully, but these errors were encountered:
running python 3.8.1
using command line:
Both logfile_viewer.py and lego_robot.py from your UNIT A code.
Traceback (most recent call last):
File "logfile_viewer.py", line 297, in
add_file()
File "logfile_viewer.py", line 197, in add_file
load_data()
File "logfile_viewer.py", line 254, in load_data
if logfile.world_cylinders:
AttributeError: 'LegoLogfile' object has no attribute 'world_cylinders'
Example from my cylinders.txt:
FIX
Add the following to:
The text was updated successfully, but these errors were encountered: