It seems the hv.Curve function needs a string, so if I change:
for i in range(1, 16):
curve *= hv.Curve(pdb[str(i)]).options(color='black')
for i in range(0, 16):
curve *= hv.Curve(pda[str(i)]).options(color=byte_to_color(i))
to (strings pda and pdb chosen arbitrarily):
for i in range(1, 16):
curve *= hv.Curve(pdb[str(i)], "pdb").options(color='black')
for i in range(0, 16):
curve *= hv.Curve(pda[str(i)], "pda").options(color=byte_to_color(i))
it seems to work. But I’m not sure why, and if it’s correct.