Parser should check for right number of open-closed parentheses
kat = finesse.Model()
kat.parse("""
l L0 P=1
s s0 L0.p1 EOM1.p1
mod EOM1 (
f=100M
midx=0.1
order=1
mod_type=pm
s s1 EOM1.p2 ITM.p1 L=1
m ITM R=0.99 T=0.01
s sCAV ITM.p2 ETM.p1 L=1
m ETM R=0.99 T=0.01 phi=123
pd1 REFL_I ITM.p1.o 100M 0
""")
sol = x2axis(kat.REFL_I.phase, 'lin', -180, 180, 100,
kat.ETM.phi, 'lin', -10, 10, 100)
sol.plot()
Give the rather unhelpful error:
KatParserError: (use finesse.tb() to see the full traceback)
line 11:3: Got unexpected token s1 of type STRING
s s1 EOM1.p2 ITM.p1 L=1
^