44
55from 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-
107class FunctionDict (dict ):
118
129 def __init__ (self ):
@@ -123,9 +120,6 @@ def function_help(function):
123120 return s
124121
125122def input_help ():
126- #for i in INPUT:
127- # s.append()
128-
129123 s = [
130124 "\n The 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 "\n Inputs" ,
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-
152141def 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 ()
214206WORK_AREA_LAYOUTS , INPUT = load_work_area_layouts ()
0 commit comments