Model, View: Some switch to logging.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-07-05 16:49:26 +02:00
1 parent bc78542d2c
commit e925a95987
5 files changed
+20 -7

No files matched your search

+5 -1
View File
@@ -1,10 +1,14 @@
# -*- coding: utf-8 -*-
import logging
from tools import timer
from Model.Geometry.Point import Point
from Model.Except import NotImplementedMethodeError
logger = logging.getLogger()
class Profile(object):
_id_cnt = 0
@@ -241,7 +245,7 @@ class Profile(object):
@timer
def sort_with_indexes(self, indexes: list):
if len(self._points) != len(indexes):
print("TODO: CRITICAL ERROR!")
logger.critical("Indexes list do not correspond to point list")
self._points = list(
map(