I think we found a minor bug. When we try to join two spaces with a node and finesse throws an error saying Bug detected.
from pykat import finesse
from pykat.commands import *
kat = finesse.kat()
kat.parse("""
l laser 1 0 n0
s s0 0.1 n0 n1_1
s s1 60 n1_1 n1
pd detect n1_1
noxaxis
""")
out = kat.run()
-------------------------------------------------------------- Error from Finesse (See 'pykat.lastErrorKat' for kat object): Bug detected! In function check_node_direction() of file kat_matrix_ccs.c at line 3508. Error message: Node n1_1 is connected to multiple components but does not have a direction specified Please report the version of Finesse you are using and the input file that caused the bug at www.gwoptics.org/finesse/bug/. Thank you. -------------------------------------------------------------- An exception has occurred, use %tb to see the full traceback. SystemExit: 1
This is probably due to the fact that the node has space on both sides and finesse cannot determine a direction for it. We encountered this while we were trying to get the beam parameters at a particular distance from a component.
Hi all,
this is caused by having two spaces connected directly together, as you note. Finesse does not allow this, though I agree the error message in this case is very unhelpful! I will submit a bug report to the developers and maybe they can fix this in a future version. For your case, please just refactor your model to remove the second space, and it should work again.