Confusing error with `space' component, bug or issue with parser error
base = finesse.Model()
code_test="""
#--------------------------------------------------------------------------
# An Advanced Virgo Plus input file for Finesse 3
# Andreas Freise, 01.05.2021
# modulation frequencies [TDR, tab 2.3, pp 24]
var f1 6270777 # fmod1 in TDR
var f2 3*&f1 # 9 * f1, fmod2 in TDR
var f3 4/3*&f1 # 4 / 3 * f1, fmod3 in TDR
var nsilica 1.44963
var Mloss 30u
var Larm 3994
# Laser and modulators
###########################################################################
# EOMs with modulation indices from https://logbook.virgo-gw.eu/virgo/?r=34898
# and https://logbook.virgo-gw.eu/virgo/?r=38123
# and https://logbook.virgo-gw.eu/virgo/?r=41551
laser i1 P=40.0 f=0.0 phase=0.0
mod eom1 f=&f1 midx=0.22
mod eom2 f=&f2 midx=0.16
mod eom3 f=&f3 midx=0.15
link(i1, eom1, eom2,eom3)
# REFL, B2 readout
###########################################################################
s eom3.p2 FI.p1
# Lossless faraday isolator to pick off B2-beam
dbs FI
"""
base.parse(code_test)
gives:
finesse.components.space [ WARNING]: Can't construct a space with only one port connected; ignoring ports.
KatDirectiveCompilationError: (use finesse.tb() to see the full traceback)
line 28: Name `eom3.p2` is not valid. Alphanumeric and underscores only
27: ###########################################################################
-->28: s eom3.p2 FI.p1
^^^^^^^^^^^^^^^
29: # Lossless faraday isolator to pick off B2-beam
The error disappears when I give the space a name. So either the name is not really optional as claimed in the documentation, or this is a bug. In either case the warning+error above are not correct.