reformatting code to meet coding conventions
This commit is contained in:
		
							parent
							
								
									f4f744e22c
								
							
						
					
					
						commit
						0b6fbd22c5
					
				| @ -116,7 +116,7 @@ class Data(object): | |||||||
|         assert isinstance(fnames, list), "input parameter 'fnames' is " \ |         assert isinstance(fnames, list), "input parameter 'fnames' is " \ | ||||||
|                                          "supposed to be of type 'list' " \ |                                          "supposed to be of type 'list' " \ | ||||||
|                                          "but is actually {0}".format(type( |                                          "but is actually {0}".format(type( | ||||||
|                                                                         fnames)) |             fnames)) | ||||||
|         if self.dirty: |         if self.dirty: | ||||||
|             self.resetWFData() |             self.resetWFData() | ||||||
| 
 | 
 | ||||||
| @ -147,7 +147,7 @@ class Data(object): | |||||||
|         st = self.getWFData() |         st = self.getWFData() | ||||||
|         inv = read_inventory(fninventory) |         inv = read_inventory(fninventory) | ||||||
|         st.attach_response(inv) |         st.attach_response(inv) | ||||||
|         pre_filt = (0.005, 0.006, 30.0, 35.0) # set in autoPyLoT.in |         pre_filt = (0.005, 0.006, 30.0, 35.0)  # set in autoPyLoT.in | ||||||
|         st.remove_response(output='VEL', pre_filt=pre_filt) |         st.remove_response(output='VEL', pre_filt=pre_filt) | ||||||
| 
 | 
 | ||||||
|     def getEvtData(self): |     def getEvtData(self): | ||||||
| @ -307,14 +307,13 @@ class PilotDataStructure(GenericDataStructure): | |||||||
|     ''' |     ''' | ||||||
| 
 | 
 | ||||||
|     def __init__(self, **fields): |     def __init__(self, **fields): | ||||||
| 
 |  | ||||||
|         if not fields: |         if not fields: | ||||||
|             fields = {'database':'2006.01', |             fields = {'database': '2006.01', | ||||||
|                       'root':'/data/Egelados/EVENT_DATA/LOCAL'} |                       'root': '/data/Egelados/EVENT_DATA/LOCAL'} | ||||||
| 
 | 
 | ||||||
|         GenericDataStructure.__init__(self, **fields) |         GenericDataStructure.__init__(self, **fields) | ||||||
| 
 | 
 | ||||||
|         self.setExpandFields(['root','database']) |         self.setExpandFields(['root', 'database']) | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class SeiscompDataStructure(GenericDataStructure): | class SeiscompDataStructure(GenericDataStructure): | ||||||
| @ -331,7 +330,6 @@ class SeiscompDataStructure(GenericDataStructure): | |||||||
|                  filesuffix=None, **kwargs): |                  filesuffix=None, **kwargs): | ||||||
|         super(GenericDataStructure, self).__init__() |         super(GenericDataStructure, self).__init__() | ||||||
| 
 | 
 | ||||||
| 
 |  | ||||||
|         edate = UTCDateTime() |         edate = UTCDateTime() | ||||||
|         halfyear = UTCDateTime('1970-07-01') |         halfyear = UTCDateTime('1970-07-01') | ||||||
|         sdate = UTCDateTime(edate - halfyear) |         sdate = UTCDateTime(edate - halfyear) | ||||||
| @ -351,9 +349,9 @@ class SeiscompDataStructure(GenericDataStructure): | |||||||
|         # http://www.seiscomp3.org/wiki/doc/applications/slarchive/SDS |         # http://www.seiscomp3.org/wiki/doc/applications/slarchive/SDS | ||||||
| 
 | 
 | ||||||
|         self.dsFields = {'root': '/data/SDS', 'YEAR': year, 'NET': '??', |         self.dsFields = {'root': '/data/SDS', 'YEAR': year, 'NET': '??', | ||||||
|                            'STA': '????', 'CHAN': 'HH?', 'TYPE': 'D', 'LOC': '', |                          'STA': '????', 'CHAN': 'HH?', 'TYPE': 'D', 'LOC': '', | ||||||
|                            'DAY': '{0:03d}'.format(sdate.julday) |                          'DAY': '{0:03d}'.format(sdate.julday) | ||||||
|         } |                          } | ||||||
|         self.modifiyFields(**kwargs) |         self.modifiyFields(**kwargs) | ||||||
| 
 | 
 | ||||||
|     def modifiyFields(self, **kwargs): |     def modifiyFields(self, **kwargs): | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user