Ignore:
Timestamp:
12/08/12 15:02:57 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Implemented the new, more flexible way of storing the log during flight (#143)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/pirep.py

    r303 r345  
    5454            print "Failed loading PIREP from %s: %s" % (path, str(e))
    5555            return None
    56        
     56
    5757    def __init__(self, flight):
    5858        """Initialize the PIREP from the given flight."""
     
    6464        self.cargoWeight = flight.cargoWeight
    6565        self.mailWeight = flight.mailWeight
    66        
     66
    6767        self.filedCruiseAltitude = flight.filedCruiseAltitude
    6868        self.cruiseAltitude = flight.cruiseAltitude
     
    8686        self.flightDefects = flight.flightDefects
    8787        self.delayCodes = flight.delayCodes
    88        
     88
    8989        self.blockTimeStart = flight.blockTimeStart
    9090        self.flightTimeStart = flight.flightTimeStart
     
    9898        self.logLines = logger.lines
    9999        self.faultLineIndexes = logger.faultLineIndexes
    100        
     100
    101101    def getACARSText(self):
    102102        """Get the ACARS text.
     
    121121            if timeStr is not None:
    122122                text += PIREP._formatLine(timeStr, line)
    123                 text += "\n"           
     123                text += "\n"
    124124
    125125        text += "\n[Flight Rating: %.1f]" % (max(0.0, self.rating),)
    126126
    127127        return text
    128    
     128
    129129    def getTimeComment(self):
    130130        """Get the time comment.
Note: See TracChangeset for help on using the changeset viewer.