Error:
File "test.py", line 12, in
plot_no_label = record_no_label.plot_with_bokeh(figure_width=8)
File "C:\Users\user\Desktop\venv\lib\site-packages\dna_features_viewer\GraphicRecord.py", line 428, in plot_with_bokeh
max_y = max([data["annotation_y"] for f, data in plot_data.items()])
ValueError: max() arg is an empty sequence
Which, after some trial and error seems to originate in line 213 in GraphicRecord.py
if feature.label is not None:
I'm not sure if this is part of the design, or a bug. But in either case, I't be nice to have a 'you need labels' error message so you know what to change instead of just trying by trial and error.
Thanks for the report ! That was a bug. My last commits fix this problem (hopefully for good, I have added a scenario with no labels to the test suite).
Small example:
Error: File "test.py", line 12, in
plot_no_label = record_no_label.plot_with_bokeh(figure_width=8)
File "C:\Users\user\Desktop\venv\lib\site-packages\dna_features_viewer\GraphicRecord.py", line 428, in plot_with_bokeh
max_y = max([data["annotation_y"] for f, data in plot_data.items()])
ValueError: max() arg is an empty sequence
Which, after some trial and error seems to originate in line 213 in GraphicRecord.py
I'm not sure if this is part of the design, or a bug. But in either case, I't be nice to have a 'you need labels' error message so you know what to change instead of just trying by trial and error.
Apart from that, great package!