@@ -111,20 +111,17 @@ class MntsImporter:
111111 @param result_file_path
112112 @param file_dir
113113 @param file_name
114- @param sensitivity_func
115114 @param analysis_func_wrapper
116115
117116 @return If an exception is thrown, it can be recieved using the excep_queue queue.
118117 This queue outputs a tuple with data:
119118 [0] - Exception to re-raise
120119 [1] - Traceback to print out"""
121- def __init__ (self , is_init , result_file_path , file_dir , file_name ,
122- sensitivity_func , analysis_func_wrapper ):
120+ def __init__ (self , is_init , result_file_path , file_dir , file_name , analysis_func_wrapper ):
123121 self .is_init = is_init
124122 self .result_file_path = result_file_path
125123 self .file_dir = file_dir
126124 self .file_name = file_name
127- self .sensitivity_func = sensitivity_func
128125 self .analysis_func_wrapper = analysis_func_wrapper
129126 if __debug__ :
130127 print ("Mountains Import Process Initialized." )
@@ -141,7 +138,7 @@ def start(self):
141138 if self .is_init :
142139 self .init_mnts ()
143140
144- # Generate results file from scale-sensitive fractal analysis
141+ # Generate results file from scale-sensitive multiscale analysis
145142 self .option_select_export_func ()
146143 # Throw exception if the results file was not correctly generated
147144 if not os .path .exists (self .result_file_path ):
@@ -199,11 +196,7 @@ def option_select_export_func(self):
199196 if __debug__ :
200197 print ("Selected graph" )
201198
202- # Select sensitivity and analysis options
203- self .sensitivity_func ()
204- if __debug__ :
205- time .sleep (_DELAY )
206- print ("Ran sensitivity selection" )
199+ # Select analysis options
207200 self .analysis_func_wrapper .call ()
208201 if __debug__ :
209202 time .sleep (_DELAY )
@@ -243,7 +236,7 @@ def option_select_export_func(self):
243236 if __debug__ :
244237 print ("Closed file editor" )
245238
246- def get_results_data (file_paths , results_dir , sensitive_func , analysis_func_wrapper ):
239+ def get_results_data (file_paths , results_dir , analysis_func_wrapper ):
247240 """Given the list of surface files and a results directory,
248241 generate the corresponding list of new file names and paths.
249242 Also generates mountains interaction process calls."""
@@ -261,31 +254,10 @@ def get_results_data(file_paths, results_dir, sensitive_func, analysis_func_wrap
261254 result_temp_paths .append (ImportUtils .append_to_path (surf_full_name , TEMP_PATH ))
262255 # Add to function list
263256 mountains_processes .append (
264- MntsImporter (i == 0 , result_temp_paths [i ], TEMP_PATH , surfName , sensitive_func , analysis_func_wrapper ))
257+ MntsImporter (i == 0 , result_temp_paths [i ], TEMP_PATH , surfName , analysis_func_wrapper ))
265258 # Output generated paths and functions
266259 return result_paths , result_temp_paths , mountains_processes
267260
268- def select_scale_sensitivity ():
269- """Select scale-sensitivity option"""
270- ImportUtils .click_resource (ResourceFiles .SCALE_SENSITIVE_BTN )
271-
272- def select_complexity ():
273- """Select scale-sensitivity option"""
274- ImportUtils .click_resource (ResourceFiles .COMPLEXITY_BTN )
275-
276- _sensitivity_option_map = {}
277- class SensitivityOption (Enum ):
278- """Used by ImportOptionsDialog to specify options for sensitivity combo box."""
279- Scale = ("Scale-sensitive Analysis" , select_scale_sensitivity )
280- Complexity = ("Complexity Analysis" , select_complexity )
281-
282- def __init__ (self , label , func ):
283- self .label = label
284- self .func = func
285- # Assign label to function map
286- global _sensitivity_option_map
287- _sensitivity_option_map [label ] = func
288-
289261def select_analysis_option (pos ):
290262 """Click on the analysis menu button to prepare for selecting the option"""
291263 ImportUtils .click_resource (ResourceFiles .ANALYSIS_OPTION_BTN )
@@ -315,10 +287,10 @@ def __init__(self, label, blank):
315287 _analysis_option_map [label ] = AnalysisOptionFuncWrapper (len (_analysis_option_map ) + 1 )
316288
317289class ImportOptionsDialog (wx .Dialog ):
318- """Create surface import options selection. This includes specifying scale/complexity sensitivity,
319- the type of surface analysis being done, as well as the directory for saving the analysis data.
320- It can then be used to return these selected options wrapped within interactive functions designed
321- for Digital Surf's MountainsMap application."""
290+ """Create surface import options selection. This includes specifying the type of surface analysis
291+ being done, as well as the directory for saving the analysis data. It can then be used to return
292+ these selected options wrapped within interactive functions designed for Digital Surf's MountainsMap
293+ application."""
322294
323295 def __init__ (self , parent , file_paths ):
324296 """@param file_paths - List of surface file paths that will be analyzed into result files."""
@@ -339,30 +311,18 @@ def __init__(self, parent, file_paths):
339311 analysis_label = wx .StaticText (self .options_panel , wx .ID_ANY , label = "Analysis Type:" )
340312 self .analysis_combo = self .getTypeCombo (AnalysisOption )
341313
342- # Sensitivity Type Selection
343- sensitivity_label = wx .StaticText (self .options_panel , wx .ID_ANY , label = "Sensitivity Type:" )
344- self .sensitivity_combo = self .getTypeCombo (SensitivityOption )
345-
346314 # Initialize sizer for both combo boxes
347315 combo_sizer = wx .BoxSizer (wx .HORIZONTAL )
348316 analysis_sizer = wx .BoxSizer (wx .VERTICAL )
349- sensitivity_sizer = wx .BoxSizer (wx .VERTICAL )
350317 # Initialize Analyasis sizer
351318 analysis_sizer .AddStretchSpacer ()
352319 analysis_sizer .Add (analysis_label , flag = wx .ALIGN_LEFT )
353320 analysis_sizer .Add (self .analysis_combo , flag = wx .ALIGN_LEFT )
354321 analysis_sizer .AddStretchSpacer ()
355- # Initialize Sensitivity sizer
356- sensitivity_sizer .AddStretchSpacer ()
357- sensitivity_sizer .Add (sensitivity_label , flag = wx .ALIGN_LEFT )
358- sensitivity_sizer .Add (self .sensitivity_combo , flag = wx .ALIGN_LEFT )
359- sensitivity_sizer .AddStretchSpacer ()
360322 # Layout combo sizers
361323 combo_sizer .AddStretchSpacer ()
362324 combo_sizer .Add (analysis_sizer , flag = wx .CENTER )
363325 combo_sizer .AddStretchSpacer ()
364- combo_sizer .Add (sensitivity_sizer , flag = wx .CENTER )
365- combo_sizer .AddStretchSpacer ()
366326
367327 # Results folder selection button handling
368328 results_label = wx .StaticText (self .options_panel , wx .ID_ANY , label = "Select Results Folder:" )
@@ -416,11 +376,10 @@ def okBtnHandler(self, event):
416376 else : # Create new directory to save files, directory accepted
417377 os .mkdir (selected_results_dir )
418378
419- sensitive_func = _sensitivity_option_map [self .sensitivity_combo .GetStringSelection ()]
420379 analysis_func = _analysis_option_map [self .analysis_combo .GetStringSelection ()]
421380 # Build new file path based on given surface files and results dir
422381 new_file_paths , temp_file_paths , new_mountains_processes = \
423- get_results_data (self .file_paths , selected_results_dir , sensitive_func , analysis_func )
382+ get_results_data (self .file_paths , selected_results_dir , analysis_func )
424383
425384 # Possibly overwrite check was requested
426385 already_exists = []
@@ -471,6 +430,7 @@ class ImportInfoDialog(wx.MessageDialog):
471430 tool_information = \
472431 "Please follow these requirements in order to have the most optimal/functional experience with" \
473432 "the surface import tool:\n \n " \
433+ " - To recieve reliable results, the means of measuring and equipment used should be identical between surfaces\n " \
474434 " - Do not move your mouse or use the keyboard during the import process\n " \
475435 " - Enable the MountainsMap product configuration startup window\n " \
476436 " - Verify that last usage of MountainsMap did not terminate unexpectedly\n " \
0 commit comments