Debugging your data

To set up the debugger, edit the path so that it points to your data in scale-example.py

if __name__ == '__main__':
    scene = create_scene(
            'data/', # <-- edit this path
            frames=range(1,6) # <-- edit frames if necessary
            )

Here are some things to check before you start debugging:

If the data follows the data structure suggested and you finished the checks before debugging, you should be able to start debugging your data!

Validate your data

Scale’s lidar debugger also allows you to validate your data. To use the debugger, uncomment lines 8 and 9 shown below. You can comment out lines 12 and 14 to avoid creating a task when debugging.

if __name__ == '__main__':
    scene = create_scene(
        'data/',
        frames=range(1,6)
        )

    # Debugging methods
    scene.get_frame(index=1).add_debug_lines()    # add lines using the camera position and heading
    scene.preview()     # preview task

    # Upload data to S3 bucket
    # scene.s3_upload(S3_BUCKET, path='test-scale') # comment this line for testing
    # Create tasks/ Scale API request
    # scene.create_task(TEMPLATE).publish() # comment this line for testing

If everything looks correct after debugging, continue to the next step to create your task!