marcin-osowski / igc_lib

A simple library to parse IGC logs and extract thermals.
MIT License
50 stars 20 forks source link

Update igc_lib.py #51

Closed moldhouse closed 4 years ago

moldhouse commented 4 years ago

Stating the IGC specification for the 'VAT':

Compensated variometer (total energy/NETTO) vertical speed in metres per second and tenths of metres per second with leading zero and no dot (".") separator between metres and tenths. Valid characters 0-9 and negative sign "-". Negative values to have negative sign instead of leading zero.

Proposed change in regular expression allows for negative sign in extras of B record.

marcin-osowski commented 4 years ago

Looks good. The build_from_B_record() method needs some test cases, I will add that.

marcin-osowski commented 4 years ago

Added test cases in e2406f919c142da34272af10ca49cc1ad21b95fd