Skip to content

Commit 733819e

Browse files
committed
cleanup
1 parent 8c3b2b0 commit 733819e

2 files changed

Lines changed: 3 additions & 15 deletions

File tree

geosupport/function_info.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44

55
from geosupport.config import FUNCTION_INFO_CSV, FUNCTION_INPUTS_CSV, WORK_AREA_LAYOUTS_PATH
66

7-
MODES = ['regular', 'extended', 'long', 'long+tpad']
8-
AUXILIARY_SEGMENT_LENGTH = 500
9-
107
class FunctionDict(dict):
118

129
def __init__(self):
@@ -123,9 +120,6 @@ def function_help(function):
123120
return s
124121

125122
def input_help():
126-
#for i in INPUT:
127-
# s.append()
128-
129123
s = [
130124
"\nThe following is a full list of inputs for Geosupport. "
131125
"It has the full name (followed by alternate names.)",
@@ -135,9 +129,6 @@ def input_help():
135129
"\nInputs",
136130
"="*40,
137131
]
138-
''' + [
139-
"%s (%s)" % (i['name'], ', '.join(i['alt_names'])) for i in INPUT
140-
]'''
141132

142133
for i in INPUT:
143134
s.append("%s (%s)" % (i['name'], ', '.join(i['alt_names'])))
@@ -147,8 +138,6 @@ def input_help():
147138

148139
return '\n'.join(s)
149140

150-
FUNCTIONS = load_function_info()
151-
152141
def load_work_area_layouts():
153142
WORK_AREA_LAYOUTS = {}
154143
INPUT = []
@@ -211,4 +200,7 @@ def load_work_area_layouts():
211200

212201
return WORK_AREA_LAYOUTS, INPUT
213202

203+
MODES = ['regular', 'extended', 'long', 'long+tpad']
204+
AUXILIARY_SEGMENT_LENGTH = 500
205+
FUNCTIONS = load_function_info()
214206
WORK_AREA_LAYOUTS, INPUT = load_work_area_layouts()

geosupport/geosupport.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ def __init__(self):
4040
def _call_geolib(self, wa1, wa2):
4141
"""
4242
Calls the Geosupport libs & encodes/deocodes strings for Python 3.
43-
:param wa1: Work Area 1
44-
:param wa2: Work Area 2
45-
:param func: Function that determines the dictionary to return.
46-
:return: Dictionary of results
4743
"""
4844

4945
# encode

0 commit comments

Comments
 (0)