{"action":"created","issue":{"url":"https://api.github.com/repos/scidash/neuronunit/issues/66","repository_url":"https://api.github.com/repos/scidash/neuronunit","labels_url":"https://api.github.com/repos/scidash/neuronunit/issues/66/labels{/name}","comments_url":"https://api.github.com/repos/scidash/neuronunit/issues/66/comments","events_url":"https://api.github.com/repos/scidash/neuronunit/issues/66/events","html_url":"https://github.com/scidash/neuronunit/issues/66","id":228442655,"number":66,"title":"neuronunit/__init__.py ","user":{"login":"russelljjarvis","id":7786645,"avatar_url":"https://avatars1.githubusercontent.com/u/7786645?v=3","gravatar_id":"","url":"https://api.github.com/users/russelljjarvis","html_url":"https://github.com/russelljjarvis","followers_url":"https://api.github.com/users/russelljjarvis/followers","following_url":"https://api.github.com/users/russelljjarvis/following{/other_user}","gists_url":"https://api.github.com/users/russelljjarvis/gists{/gist_id}","starred_url":"https://api.github.com/users/russelljjarvis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russelljjarvis/subscriptions","organizations_url":"https://api.github.com/users/russelljjarvis/orgs","repos_url":"https://api.github.com/users/russelljjarvis/repos","events_url":"https://api.github.com/users/russelljjarvis/events{/privacy}","received_events_url":"https://api.github.com/users/russelljjarvis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-05-13T02:18:05Z","updated_at":"2017-06-30T21:55:31Z","closed_at":null,"body":"The file [neuronunit/`__init__.py`](https://github.com/scidash/neuronunit/blob/dev/neuronunit/tests/__init__.py#85-65) fails with the stack trace:\r\n```\r\nTraceback (most recent call last):\r\n  File \"/opt/conda/lib/python3.5/site-packages/scoop-0.7.2.0-py3.5.egg/scoop/_control.py\", line 150, in runFuture\r\n    future.resultValue = future.callable(*future.args, **future.kargs)\r\n  File \"/opt/conda/lib/python3.5/runpy.py\", line 254, in run_path\r\n    pkg_name=pkg_name, script_name=fname)\r\n  File \"/opt/conda/lib/python3.5/runpy.py\", line 96, in _run_module_code\r\n    mod_name, mod_spec, pkg_name, script_name)\r\n  File \"/opt/conda/lib/python3.5/runpy.py\", line 85, in _run_code\r\n    exec(code, run_globals)\r\n  File \"nsga.py\", line 649, in <module>\r\n    vmpop, pop, stats, invalid_ind = main()\r\n  File \"nsga.py\", line 533, in main\r\n    fitnesses = list(toolbox.map(toolbox.evaluate, pop, iter_))\r\n  File \"/opt/conda/lib/python3.5/site-packages/scoop-0.7.2.0-py3.5.egg/scoop/futures.py\", line 99, in _mapGenerator\r\n    for future in _waitAll(*futures):\r\n  File \"/opt/conda/lib/python3.5/site-packages/scoop-0.7.2.0-py3.5.egg/scoop/futures.py\", line 360, in _waitAll\r\n    for f in _waitAny(future):\r\n  File \"/opt/conda/lib/python3.5/site-packages/scoop-0.7.2.0-py3.5.egg/scoop/futures.py\", line 337, in _waitAny\r\n    raise childFuture.exceptionValue\r\nAttributeError: 'RatioScore' object has no attribute 'unpicklable'\r\n```\r\n\r\nI am trying to conditionally make a list type of score.picklable but it seems to fail regardless:\r\n\r\nI am using:\r\n```\r\nif not hasattr(score,'picklable'):\r\n     score.picklable = []\r\n```\r\nwhich does not seem to work."},"comment":{"url":"https://api.github.com/repos/scidash/neuronunit/issues/comments/312381322","html_url":"https://github.com/scidash/neuronunit/issues/66#issuecomment-312381322","issue_url":"https://api.github.com/repos/scidash/neuronunit/issues/66","id":312381322,"user":{"login":"rgerkin","id":549787,"avatar_url":"https://avatars0.githubusercontent.com/u/549787?v=3","gravatar_id":"","url":"https://api.github.com/users/rgerkin","html_url":"https://github.com/rgerkin","followers_url":"https://api.github.com/users/rgerkin/followers","following_url":"https://api.github.com/users/rgerkin/following{/other_user}","gists_url":"https://api.github.com/users/rgerkin/gists{/gist_id}","starred_url":"https://api.github.com/users/rgerkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgerkin/subscriptions","organizations_url":"https://api.github.com/users/rgerkin/orgs","repos_url":"https://api.github.com/users/rgerkin/repos","events_url":"https://api.github.com/users/rgerkin/events{/privacy}","received_events_url":"https://api.github.com/users/rgerkin/received_events","type":"User","site_admin":false},"created_at":"2017-06-30T21:55:31Z","updated_at":"2017-06-30T21:55:31Z","body":"I think if I add `unpicklable = []` as an attribute to the SciUnit class, not just create it in the constructor, then any subclass instance should have that attribute even if somehow the constructor never got called.  I think the constructor isn't getting called because you are somehow putting instances of tests into test suites with attributes that were not fully realized by the usual route.  "}}
{"actor":{"display_login":"rgerkin"}}