quarrying 4 år sedan
förälder
incheckning
c7853fd64d
2 ändrade filer med 2 tillägg och 2 borttagningar
  1. 1 1
      khandy/boxes/boxes_transform_translate.py
  2. 1 1
      khandy/utils_others.py

+ 1 - 1
khandy/boxes/boxes_transform_translate.py

@@ -3,7 +3,7 @@ from .boxes_utils import assert_and_normalize_shape
 
 
 def translate_boxes(boxes, x_shift=0, y_shift=0, copy=True):
-    """scale boxes coordinates in x and y dimensions.
+    """translate boxes coordinates in x and y dimensions.
     
     Args:
         boxes: (N, 4+K)

+ 1 - 1
khandy/utils_others.py

@@ -66,7 +66,7 @@ class ContextTimer(object):
         return time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())
     
     def _print_or_log(self, output_str):
-        if self.use_log is True:
+        if self.use_log:
             logging.info(output_str)
         else:
             print(output_str)