From 4139f239ea2ea384200135128b7cb24dc239096c Mon Sep 17 00:00:00 2001 From: Xylar Asay-Davis Date: Sun, 18 Apr 2021 14:43:49 +0200 Subject: [PATCH] Only print info on masked features if requested The output is confusing if there is no context, so it has been removed unless `show_progress = True`. --- geometric_features/feature_collection.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geometric_features/feature_collection.py b/geometric_features/feature_collection.py index 9262f26f..ede6c6eb 100644 --- a/geometric_features/feature_collection.py +++ b/geometric_features/feature_collection.py @@ -307,9 +307,9 @@ def difference(self, maskingFC, show_progress=False): if show_progress: bar.finish() - print(' {} features unchanged, {} masked and {} dropped.'.format( - featureCount - maskedCount - droppedCount, maskedCount, - droppedCount)) + print(' {} features unchanged, {} masked and {} dropped.'.format( + featureCount - maskedCount - droppedCount, maskedCount, + droppedCount)) fc = FeatureCollection(maskedFeatures, self.otherProperties) return fc