<commit_before>#!/usr/bin/env python3
import unittest
import time
import math
from dataclasses import dataclass

from system.hardware import HARDWARE, TICI
from system.hardware.tici.power_monitor import get_power
from selfdrive.manager.process_config import managed_processes
from selfdrive.manager.manager import manager_cleanup


@dataclass
class Proc:
  name: str
  power: float
  rtol: float = 0.05
  atol: float = 0.1
  warmup: float = 6.

PROCS = [
  Proc('camerad', 2.15),
  Proc('modeld', 1.0),
  Proc('dmonitoringmodeld', 0.25),
  Proc('encoderd', 0.23),
]


class TestPowerDraw(unittest.TestCase):

  @classmethod
  def setUpClass(cls):
    if not TICI:
      raise unittest.SkipTest<commit_msg>bump up modeld power draw threshold<commit_after>#!/usr/bin/env python3
import unittest
import time
import math
from dataclasses import dataclass

from system.hardware import HARDWARE, TICI
from system.hardware.tici.power_monitor import get_power
from selfdrive.manager.process_config import managed_processes
from selfdrive.manager.manager import manager_cleanup


@dataclass
class Proc:
  name: str
  power: float
  rtol: float = 0.05
  atol: float = 0.1
  warmup: float = 6.

PROCS = [
  Proc('camerad', 2.15),
  Proc('modeld', 1.0, atol=0.15),
  Proc('dmonitoringmodeld', 0.25),
  Proc('encoderd', 0.23),
]


class TestPowerDraw(unittest.TestCase):

  @classmethod
  def setUpClass(cls):
    if not TICI:
      raise unittest.SkipTest
{'fraction_non_alphanumeric': 0.10048510048510048, 'fraction_numerical': 0.02702702702702703, 'mean_word_length': 4.46969696969697, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1997161', 'n_tokens_mistral': 544, 'n_tokens_neox': 496, 'n_words': 133}