Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinRatioByColor fails when no games exist #2

Closed
guidopetri opened this issue Mar 16, 2020 · 1 comment
Closed

WinRatioByColor fails when no games exist #2

guidopetri opened this issue Mar 16, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@guidopetri
Copy link
Owner

If no games exist for the week, WinRatioByColor fails:

Runtime error:
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.7/site-packages/luigi/worker.py", line 199, in run
    new_deps = self._run_get_new_deps()
  File "/home/pi/.local/lib/python3.7/site-packages/luigi/worker.py", line 141, in _run_get_new_deps
    task_gen = self.task.run()
  File "/home/pi/Git/chess-pipeline/newsletter.py", line 113, in run
    1.01],  # enforce two digits of precision
  File "/home/pi/.local/lib/python3.7/site-packages/pandas/plotting/_core.py", line 847, in __call__
    return plot_backend.plot(data, kind=kind, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/pandas/plotting/_matplotlib/__init__.py", line 61, in plot
    plot_obj.generate()
  File "/home/pi/.local/lib/python3.7/site-packages/pandas/plotting/_matplotlib/core.py", line 265, in generate
    self._make_legend()
  File "/home/pi/.local/lib/python3.7/site-packages/pandas/plotting/_matplotlib/core.py", line 572, in _make_legend
    ax.legend(handles, labels, loc="best", title=title)
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/axes/_axes.py", line 406, in legend
    self.legend_ = mlegend.Legend(self, handles, labels, **kwargs)
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend.py", line 575, in __init__
    self._init_legend_box(handles, labels, markerfirst)
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend.py", line 833, in _init_legend_box
    fontsize, handlebox))
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend_handler.py", line 115, in legend_artist
    fontsize, handlebox.get_transform())
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend_handler.py", line 299, in create_artists
    self.update_prop(p, orig_handle, legend)
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend_handler.py", line 72, in update_prop
    self._update_prop(legend_handle, orig_handle)
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend_handler.py", line 65, in _update_prop
    self._update_prop_func(legend_handle, orig_handle)
  File "/home/pi/.local/lib/python3.7/site-packages/matplotlib/legend_handler.py", line 38, in update_from_first_child
    tgt.update_from(src.get_children()[0])
IndexError: list index out of range
@guidopetri guidopetri self-assigned this Mar 16, 2020
@guidopetri guidopetri added the bug Something isn't working label Mar 16, 2020
@guidopetri
Copy link
Owner Author

Tentatively closed by ba7929a.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant