From 2c6c04a77b1750f549735796027f5151e689069f Mon Sep 17 00:00:00 2001 From: AD Date: Tue, 29 Jan 2019 10:55:08 +0100 Subject: [PATCH] refactor obsolete code --- tagmaps/classes/interface.py | 1 - tagmaps/config/config.py | 13 +++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tagmaps/classes/interface.py b/tagmaps/classes/interface.py index ed83001..6bf4d44 100644 --- a/tagmaps/classes/interface.py +++ b/tagmaps/classes/interface.py @@ -16,7 +16,6 @@ import numpy as np import matplotlib.pyplot as plt from typing import List, Set, Dict, Tuple, Optional, TextIO -import sklearn.datasets as data import traceback import shapely.geometry as geometry from tagmaps.classes.utils import Utils diff --git a/tagmaps/config/config.py b/tagmaps/config/config.py index c455c2e..b42d635 100644 --- a/tagmaps/config/config.py +++ b/tagmaps/config/config.py @@ -65,6 +65,7 @@ def __init__(self): if self.shapefile_intersect: self.load_shapefile() self.source_map = self.load_sourcemapping() + self.set_glob_options() def parse_args(self): """Parse init args and set default values @@ -354,6 +355,12 @@ def load_sourcemapping(self): source_config_py = ConfigMap(source_config) return source_config_py + @staticmethod + def set_glob_options(): + """Includes global options in other packages to be set + prior execution""" + # unused + class ConfigMap: """Retrieves python object from config.cfg""" @@ -402,9 +409,3 @@ def _quote_selector(quote_string): } quoting = quote_switch.get(quote_string) return quoting - - @staticmethod - def set_glob_options(): - """Includes global options in other packages to be set - prior execution""" - # empty so far