Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vt_num inconsistent type #13

Open
edne opened this issue Nov 5, 2019 · 3 comments
Open

vt_num inconsistent type #13

edne opened this issue Nov 5, 2019 · 3 comments

Comments

@edne
Copy link
Collaborator

edne commented Nov 5, 2019

The vt_num parameters is required to be a long in volume_transmitter.cpp and a double in the synapses definitions

https://github.com/alberto-antonietti/CerebNEST/search?l=C%2B%2B&q=vt_num

@edne edne changed the title vt_num inconsisten type vt_num inconsistent type Nov 5, 2019
@alberto-antonietti
Copy link
Owner

Changed all vt_num to long since they should be integer numbers.

@alberto-antonietti
Copy link
Owner

With the changes, NEST complains when trying to Connect

nest.Connect(PRE, POST, "all_to_all", {"model": 'stdp_synapse_sinexp', "vt_num": 0})

Raises:

Traceback (most recent call last):
File "", line 1, in
File "/home/alberto/workspace/nest-simulator-2.18.0/b/lib/python3.5/site-packages/nest/ll_api.py", line 246, in stack_checker_func
return f(*args, **kwargs)
File "/home/alberto/workspace/nest-simulator-2.18.0/b/lib/python3.5/site-packages/nest/lib/hl_api_connections.py", line 362, in Connect
sr('Connect')
File "/home/alberto/workspace/nest-simulator-2.18.0/b/lib/python3.5/site-packages/nest/ll_api.py", line 132, in catching_sli_run
raise exceptionCls(commandname, message)
nest.ll_api.TypeMismatch: ('TypeMismatch in Connect_g_g_D_D: Expected datatype: integertype\nProvided datatype: doubletype', 'TypeMismatch', <SLILiteral: Connect_g_g_D_D>, ': Expected datatype: integertype\nProvided datatype: doubletype')

@alberto-antonietti
Copy link
Owner

Calling a SetStatus a posteriori works fine,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants