Ok thanks! So I suppose in the next major version this change will be
introduced; in the meanwhile I'll use the error type and message to catch
the exception and swap the arguments :)
On Mon, 22 May 2023, 12:52 Benelhedi, Mohamed Ayssar, <
m.benelhedi(a)fz-juelich.de> wrote:
Hey Robin,
Using Devices in NEST is currently under reconstruction. Mainly, we are
thinking of not considering the devices to be part of the network, but
rather an extension of the neuron that will be attached dynamically at
runtime.
So basically the problem of knowing if the device is a receiver or sender
(i.e, being on the left or side of the Connect call) won't be an issue
anymore, as devices won't be connected at all!
Best,
Ayssar
------------------------------
*From:* Robin Gilbert De Schepper <robingilbert.deschepper(a)unipv.it>
*Sent:* Wednesday, May 17, 2023 4:20:31 PM
*To:* NEST User Mailing List
*Subject:* [NEST Users] Handle input/output relation of device to node
connection
Hello NEST users,
I'm trying to connect some devices in a black box manner and run into this
error:
```
nest.lib.hl_api_exceptions.NESTErrors.IllegalConnection: IllegalConnection
in SLI function Connect_g_g_D_D: Creation of connection is not possible
because:
Source node does not send output.
Note that recorders must be connected as Connect(neuron, recorder).
```
Is there a way for me to inspect whether I should nest.Connect(A, B) or
nest.Connect(B, A), or should I catch this error and try the inverse? Is
this the only `IllegalConnection` error that can be thrown, or should I
parse the error message? (which is prone to changes)
--
Robin De Schepper, MSc (they/them)
Department of Brain and Behavioral Sciences
Unit of Neurophysiology
University of Pavia, Italy
Via Forlanini 6, 27100 Pavia - Italy
Tel: (+39) 038298-7607
http://www-5.unipv.it/dangelo/
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Stefan Müller
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Dr. Ir. Pieter Jansens,
Prof. Dr. Astrid Lambrecht, Prof. Dr. Frauke Melchior
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
_______________________________________________
NEST Users mailing list -- users(a)nest-simulator.org
To unsubscribe send an email to users-leave(a)nest-simulator.org