[bugfix] using default channel components in case QSettings is not working with OS
This commit is contained in:
		
							parent
							
								
									66c5142cb9
								
							
						
					
					
						commit
						50750fc4e0
					
				| @ -35,7 +35,7 @@ from pylot.core.io.inputs import FilterOptions, AutoPickParameter | ||||
| from pylot.core.pick.utils import getSNR, earllatepicker, getnoisewin, \ | ||||
|     getResolutionWindow | ||||
| from pylot.core.pick.compare import Comparison | ||||
| from pylot.core.util.defaults import OUTPUTFORMATS, FILTERDEFAULTS, LOCTOOLS | ||||
| from pylot.core.util.defaults import OUTPUTFORMATS, FILTERDEFAULTS, LOCTOOLS, SetChannelComponents | ||||
| from pylot.core.util.utils import prepTimeAxis, full_range, scaleWFData, \ | ||||
|     demeanTrace, isSorted, findComboBoxIndex, clims | ||||
| from autoPyLoT import autoPyLoT | ||||
| @ -2332,6 +2332,9 @@ class ChannelOrderTab(PropTab): | ||||
| 
 | ||||
|         settings = QSettings() | ||||
|         compclass = settings.value('compclass') | ||||
|         if not compclass: | ||||
|             print('Warning: No settings for channel components found. Using default') | ||||
|             compclass = SetChannelComponents() | ||||
| 
 | ||||
|         ChannelOrderLabelZ = QLabel("Channel Z [up/down, default=3]") | ||||
|         ChannelOrderLabelN = QLabel("Channel N [north/south, default=1]") | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user