mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Model, View: Some switch to logging.
This commit is contained in:
1 parent
bc78542d2c
commit
e925a95987
5 files changed
+20
-7
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user