You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)'
The text was updated successfully, but these errors were encountered:
Hi @data-al. Sorry it took me so long to see this.
The parser currently supports multiple locations in the A clause when they are separated by a slash ("/"). Re-checking the ICAO specification, it appears this is indeed incorrect and should be a whitespace.
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)'
The text was updated successfully, but these errors were encountered: