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
When trying to interpolate a 9-color divergent ramp to 32 bins, I noticed a 'list index out of range' error being thrown on line 1823 of init.py. Intrigued, I ran a loop to see which bin counts worked and which didn't. Those results are posted in the space below.
If this is an expected behavior, a better error message should be thrown. If this is a bug, it will need to be investigated.
Error message:
yc in interp(scl, r)
1821 c_i = int(i*math.floor(SCL_FI)/round(r[-1])) # start color index
1822 hsl_o = rgb_to_hsl( scl[c_i] ) # convert rgb to hls
-> 1823 hsl_f = rgb_to_hsl( scl[c_i+1] )
1824 section_min = c_i*r[-1]/SCL_FI
1825 section_max = (c_i+1)*(r[-1]/SCL_FI)
When trying to interpolate a 9-color divergent ramp to 32 bins, I noticed a 'list index out of range' error being thrown on line 1823 of init.py. Intrigued, I ran a loop to see which bin counts worked and which didn't. Those results are posted in the space below.
If this is an expected behavior, a better error message should be thrown. If this is a bug, it will need to be investigated.
Error message:
Test code:
The text was updated successfully, but these errors were encountered: