Pymecavideo 8.0
Étude cinématique à l'aide de vidéos
dbg.py
1# -*- coding: utf-8 -*-
2
3"""
4 dbg.py, a module for pymecavideo:
5 a program to track moving points in a video frameset
6
7 Copyright (C) 2007 Jean-Baptiste Butet <ashashiwa@gmail.com>
8 Copyright (C) 2023 Georges Khaznadar <georgesk@debian.org>
9
10
11 This program is free software: you can redistribute it and/or modify
12 it under the terms of the GNU General Public License as published by
13 the Free Software Foundation, either version 3 of the License, or
14 (at your option) any later version.
15
16 This program is distributed in the hope that it will be useful,
17 but WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 GNU General Public License for more details.
20
21 You should have received a copy of the GNU General Public License
22 along with this program. If not, see <http://www.gnu.org/licenses/>.
23"""
24
25
26class Dbg:
27 def __init__(self, verbosite):
28 self.verbosite = int(verbosite)
29
30 def p(self, niveau, msg):
31 """
32 affiche un message si la verbosité est suffisante
33 """
34 if niveau <= self.verbosite:
35 print(msg)
36
37 def __str__(self):
38 """
39 Renvoie une chaîne lisible pour les humains.
40 """
41 return f"Le débogage a pour verbosité {self.verbosite}"
dbg.py, a module for pymecavideo: a program to track moving points in a video frameset
Definition: dbg.py:26
def p(self, niveau, msg)
affiche un message si la verbosité est suffisante
Definition: dbg.py:33
verbosite
Definition: dbg.py:28
def __str__(self)
Renvoie une chaîne lisible pour les humains.
Definition: dbg.py:40