diff --git a/tagmaps/__main__.py b/tagmaps/__main__.py index 8fefbb4..597e939 100644 --- a/tagmaps/__main__.py +++ b/tagmaps/__main__.py @@ -119,6 +119,7 @@ def main(): cluster_types.append(EMOJI) if cfg.cluster_locations: cluster_types.append(LOCATIONS) + # initialize clusterers clusterer_list = list() for cls_type in cluster_types: diff --git a/tagmaps/classes/cluster.py b/tagmaps/classes/cluster.py index 3024fce..c7fd453 100644 --- a/tagmaps/classes/cluster.py +++ b/tagmaps/classes/cluster.py @@ -645,6 +645,7 @@ def get_cluster_shapes(self): saturation_exclude_count = 0 shapes_and_meta = list() tnum = 0 + topitem_area = None if self.local_saturation_check: # calculate total area of Top1-Tag # for 80% saturation check for lower level tags diff --git a/tagmaps/config/config.py b/tagmaps/config/config.py index 41d719a..a0980f3 100644 --- a/tagmaps/config/config.py +++ b/tagmaps/config/config.py @@ -101,14 +101,14 @@ def parse_args(self): "(no filtering based on tags or emoji)" ) parser.add_argument("-c", - "--localSaturationCheck", + "--disableLocalSaturationCheck", action="store_true", - default=False, - help="Will exclude any tags that " + default=True, + help="Will not exclude any tags that " "are (over)used at above a certain percentage " "of locations in processing extent. Since this " "will usually improve legibility of tag maps, it " - "is enabled by default." + "is enabled by default. Disable with this flag." ) parser.add_argument("-j", "--tokenizeJapanese", @@ -217,8 +217,8 @@ def parse_args(self): self.topic_modeling = args.topicModeling if args.writeCleanedData: self.write_cleaned_data = args.writeCleanedData - if args.localSaturationCheck: - self.local_saturation_check = args.localSaturationCheck + if args.disableLocalSaturationCheck: + self.local_saturation_check = False if args.shapefileIntersect: self.shapefile_intersect = args.shapefileIntersect if args.shapefilePath: