garcia / simfile

A modern simfile parsing & editing library for Python 3
MIT License
62 stars 7 forks source link

Docs improperly shows how to parse DisplayBPM Range #48

Closed zaneneuschuler closed 2 months ago

zaneneuschuler commented 2 months ago

In the docs for timing and note data for parsing DisplayBPMs, it incorrectly shows how to parse a DisplayBPM Range:

elif disp.range:
    print(f"Range of values: {disp.value[0]}-{disp.value[1]}")

This will just cause an error, what should be in the docs instead is

elif disp.range:
    print(f"Range of values: {disp.range[0]}-{disp.range[1]}")
garcia commented 2 months ago

Fixed in https://github.com/garcia/simfile/commit/0bb52553a9c7f50ca6b8311e02431d9db0ac14f4. Thanks for the report!