Skip to content

Commit

Permalink
Testing Chart error
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Jul 25, 2024
1 parent 5456b13 commit 4e15378
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions jtop/gui/lib/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@
import curses
from collections import deque
from .common import check_curses
import logging
# Create logger
logger = logging.getLogger(__name__)


class Chart(object):
Expand All @@ -38,7 +35,6 @@ class Chart(object):
"""

def __init__(self, jetson, name, callback, type_value=int, line="*", color_text=curses.COLOR_WHITE, color_chart=[], fill=True, time=10.0, tik=2):
logger.info(f"{Chart.COLOR_COUNTER}")
self._color_obj_counter = Chart.COLOR_COUNTER
self.jetson = jetson
self.name = name
Expand Down Expand Up @@ -77,16 +73,6 @@ def __init__(self, jetson, name, callback, type_value=int, line="*", color_text=
for idy, color_set in enumerate(list_element):
idx_name = Chart.OFFSET_COLOR_CHART + self._color_obj_counter + (len(self.color_chart) - idx - 1) * color_step + idy
second_color = self.color_chart[color_set[1]] if color_set[1] < len(self.color_chart) else curses.COLOR_BLACK
logger.info("-------------------------------------")
logger.info(f"{self.color_chart}")
logger.info(f"{values}")
logger.info(f"{self._combinations}")
logger.info(f"{Chart.OFFSET_COLOR_CHART}")
logger.info(f"{self._color_obj_counter}")
logger.info(f"{(len(self.color_chart) - idx - 1)}")
logger.info(f"{len(self.color_chart)}")
logger.info(f"{color_step}")
logger.info(f"Idx_name: {idx_name}")
curses.init_pair(idx_name, self.color_chart[color_set[0]], second_color)
except curses.error:
curses.use_default_colors()
Expand Down

0 comments on commit 4e15378

Please sign in to comment.