Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on selection of cylinders.txt file #1

Open
Bazmundi opened this issue Mar 6, 2020 · 0 comments
Open

Error on selection of cylinders.txt file #1

Bazmundi opened this issue Mar 6, 2020 · 0 comments

Comments

@Bazmundi
Copy link

Bazmundi commented Mar 6, 2020

running python 3.8.1
using command line:

python logfile_viewer.py

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 = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant