|
@@ -247,6 +247,8 @@ class InterfaceCore():
|
|
|
if source and target:
|
|
|
if self.mode not in ["Link", "InitialCondition"]:
|
|
|
print("Cannot create something not guaranteed to be link type!")
|
|
|
+ elif source == target:
|
|
|
+ print("Cannot create link to self")
|
|
|
else:
|
|
|
global name
|
|
|
self.mv.instantiate_link(str(name), self.mode, source, target)
|