Skip to content

Error when location changes in NOTAMC #3

Description

@data-al

I saw there is an issue with the parser in the case when there is a NOTAMC with a change in the location, like for ex.:

import notam

issue_notam = '(H3501/20 NOTAMC H2368/20\nQ) CZXX/QAACN/IV/BO/E/035/050/5050N05947W155\nA) CZUL CZQX B) 2012312350\nE) L657: NUDOV TO SUSUB: INFO PUBLISHED)'

notam.Notam.from_str(issue_notam)

I get this error:

ParseError: Rule 'b_clause' didn't match at 'CZQX B) 2012312350 E' (line 3, column 9).

If i remove the second airport (like below) it works, so i guess the code doesn't handle these cases ? :

issue_notam = '(H3501/20 NOTAMC H2368/20\nQ) CZXX/QAACN/IV/BO/E/035/050/5050N05947W155\nA) CZUL B) 2012312350\nE) L657: NUDOV TO SUSUB: INFO PUBLISHED)'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions