Skip to content

IndexError: list index out of range in push_pixels #31

@dakhnod

Description

@dakhnod

When running heatmap.py on the attached file I get this error:

loading
x: 6000, y: 38, z: (-103.960000, -8.680000)
drawing
Traceback (most recent call last):
  File "/home/daniel/Projects/hackrf/heatmap.py", line 618, in <module>
    img = push_pixels(args)
  File "/home/daniel/Projects/hackrf/heatmap.py", line 420, in push_pixels
    pix[x,y+tape_height+1] = rgb(zs[x])
  File "/home/daniel/Projects/hackrf/heatmap.py", line 360, in rgb_inner
    return palette[tone_scaled]
IndexError: list index out of range

Thanks for your work!
test.csv

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions