Skip to content

Commit

Permalink
Merge branch 'main' into upgrading-DBs
Browse files Browse the repository at this point in the history
  • Loading branch information
EdgesFTW authored Nov 30, 2023
2 parents b98e1a6 + 253efc2 commit c59a35e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions logpyle/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1197,13 +1197,13 @@ def get_plot_data(self, expr_x: Expression, expr_y: Expression,
if max_step is not None:
data = [(step, tup) for step, tup in data if step <= max_step]

stepless_data = [tup for step, tup in data]
stepless_data = [tup for _step, tup in data]

if stepless_data:
data_x, data_y = list(zip(*stepless_data))
else:
data_x = []
data_y = []
data_x = ()
data_y = ()

return (data_x, descr_x, unit_x), \
(data_y, descr_y, unit_y)
Expand Down
4 changes: 2 additions & 2 deletions logpyle/runalyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ def do_plot(x: List[float], y: List[float],
style_idx[0] += 1

style_idx = [0]
for x, y, rest in split_cursor(cursor):
do_plot(x, y, rest) # type: ignore[arg-type]
for my_x, my_y, rest in split_cursor(cursor):
do_plot(my_x, my_y, rest) # type: ignore[arg-type]

if small_legend:
from matplotlib.font_manager import FontProperties
Expand Down

0 comments on commit c59a35e

Please sign in to comment.