Compare commits
	
		
			No commits in common. "2c7c1cfc840e29ec69073eb21139e81d381b3c8c" and "d8af90872fa4dca227700f5ee7c648d702808012" have entirely different histories.
		
	
	
		
			2c7c1cfc84
			...
			d8af90872f
		
	
		
					 2 changed files with 4 additions and 14 deletions
				
			
		| 
						 | 
				
			
			@ -165,6 +165,9 @@ class Hodograph():
 | 
			
		|||
 | 
			
		||||
    def each_significant_sample(self, sounding: Sounding):
 | 
			
		||||
        for sample in sounding.samples:
 | 
			
		||||
            if sample.pressure < 0 or sample.pressure is None:
 | 
			
		||||
                continue
 | 
			
		||||
 | 
			
		||||
            if sample.height is None:
 | 
			
		||||
                continue
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -82,18 +82,6 @@ class Sounding(DatabaseTable):
 | 
			
		|||
        'data_source_pressure', 'data_source_other', 'samples', 'location'
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    def __str__(self):
 | 
			
		||||
        parts = [
 | 
			
		||||
            f"Sounding from station {self.station}"
 | 
			
		||||
        ]
 | 
			
		||||
 | 
			
		||||
        if self.location is not None:
 | 
			
		||||
            parts.append(f"(location {self.location})")
 | 
			
		||||
 | 
			
		||||
        parts.append(f"observed {self.timestamp_observed}")
 | 
			
		||||
 | 
			
		||||
        return ' '.join(parts)
 | 
			
		||||
 | 
			
		||||
    __table__ = 'xmet_sounding'
 | 
			
		||||
    __key__   = 'id'
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -129,8 +117,7 @@ class Sounding(DatabaseTable):
 | 
			
		|||
 | 
			
		||||
    def __init__(self):
 | 
			
		||||
        super().__init__()
 | 
			
		||||
        self.id       = None
 | 
			
		||||
        self.location = None
 | 
			
		||||
        self.id = None
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def valid_by_station(db: Database,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue