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

create_net_from_spec: Parsing error #110

Open
michaelwand opened this issue Jan 9, 2016 · 0 comments
Open

create_net_from_spec: Parsing error #110

michaelwand opened this issue Jan 9, 2016 · 0 comments

Comments

@michaelwand
Copy link
Contributor

create_net_from_spec causes a parsing error depending on the presence or absence of whitespace, which is not according to the documentation ("Whitespace is allowed everywhere and will be completely ignored.").

Example script to reproduce the error:

import brainstorm as bs
print('This works')
net = bs.tools.create_net_from_spec('classification',4,5,'Ft200 D Ft200 D Ft200')
print('This does not work')
net = bs.tools.create_net_from_spec('classification',4,5,'Ft200DFt200DFt200')
print('Never reached')

Output:

This works
This does not work
Traceback (most recent call last):
File "DoSomething.py", line 15, in
net = bs.tools.create_net_from_spec('classification',4,5,'Ft200DFt200DFt200')
File "build/bdist.linux-x86_64/egg/brainstorm/tools.py", line 614, in create_net_from_spec
File "build/bdist.linux-x86_64/egg/brainstorm/tools.py", line 498, in create_layer
KeyError: 'DF'

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

1 participant