From c5e24b5739e343a86c2caa47d147a86bb4924fa7 Mon Sep 17 00:00:00 2001 From: Evgeny Smyshlyaev Date: Thu, 11 Apr 2019 14:53:35 +0300 Subject: [PATCH] fix segment_map -> segment (#556) --- analytics/analytics/models/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytics/analytics/models/model.py b/analytics/analytics/models/model.py index 0e2b1b0..adbbe82 100644 --- a/analytics/analytics/models/model.py +++ b/analytics/analytics/models/model.py @@ -76,7 +76,7 @@ class Model(ABC): if segment_map['labeled'] or segment_map['deleted']: segment = Segment(dataframe, segment_map, self.find_segment_center) if segment.percent_of_nans > 0.1 or len(segment.data) == 0: - logging.debug(f'segment {segment_map.start}-{segment_map.end} skip because of invalid data') + logging.debug(f'segment {segment.start}-{segment.end} skip because of invalid data') continue if segment.percent_of_nans > 0: segment.convert_nan_to_zero()