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

test_generate.py is failing #20

Open
twiecki opened this issue Nov 12, 2012 · 0 comments
Open

test_generate.py is failing #20

twiecki opened this issue Nov 12, 2012 · 0 comments
Assignees

Comments

@twiecki
Copy link
Member

twiecki commented Nov 12, 2012

Not sure when this happened but I think @isofer rewrote the add_noise but didn't change the unittests.

>>nosetests test_generate.py
E..EE.
======================================================================
ERROR: test_add_noise (kabuki.tests.test_generate.TestGenerate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/wiecki/working/projects/kabuki/kabuki/tests/test_generate.py", line 17, in test_add_noise
    new_params = _add_noise(params, noise=noise)
  File "/home/wiecki/working/projects/kabuki/kabuki/generate.py", line 70, in _add_noise
    for param, value in cond_params.iteritems():
AttributeError: 'int' object has no attribute 'iteritems'

======================================================================
ERROR: test_single_cond_multi_subjs (kabuki.tests.test_generate.TestGenerate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/wiecki/working/projects/kabuki/kabuki/tests/test_generate.py", line 72, in test_single_cond_multi_subjs
    new_params = _add_noise(params)
  File "/home/wiecki/working/projects/kabuki/kabuki/generate.py", line 70, in _add_noise
    for param, value in cond_params.iteritems():
AttributeError: 'int' object has no attribute 'iteritems'

======================================================================
ERROR: test_single_cond_multi_subjs_exclude (kabuki.tests.test_generate.TestGenerate)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/wiecki/working/projects/kabuki/kabuki/tests/test_generate.py", line 97, in test_single_cond_multi_subjs_exclude
    new_params = _add_noise(params, exclude_params=('tau',))
  File "/home/wiecki/working/projects/kabuki/kabuki/generate.py", line 70, in _add_noise
    for param, value in cond_params.iteritems():
AttributeError: 'int' object has no attribute 'iteritems'

----------------------------------------------------------------------
Ran 6 tests in 0.105s

FAILED (errors=3)
@ghost ghost assigned isofer Nov 12, 2012
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