{"action":"created","issue":{"url":"https://api.github.com/repos/fishroot/nemoa/issues/117","repository_url":"https://api.github.com/repos/fishroot/nemoa","labels_url":"https://api.github.com/repos/fishroot/nemoa/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/fishroot/nemoa/issues/117/comments","events_url":"https://api.github.com/repos/fishroot/nemoa/issues/117/events","html_url":"https://github.com/fishroot/nemoa/issues/117","id":332149741,"node_id":"MDU6SXNzdWUzMzIxNDk3NDE=","number":117,"title":"Bug in model image export","user":{"login":"fishroot","id":4815253,"node_id":"MDQ6VXNlcjQ4MTUyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4815253?v=4","gravatar_id":"","url":"https://api.github.com/users/fishroot","html_url":"https://github.com/fishroot","followers_url":"https://api.github.com/users/fishroot/followers","following_url":"https://api.github.com/users/fishroot/following{/other_user}","gists_url":"https://api.github.com/users/fishroot/gists{/gist_id}","starred_url":"https://api.github.com/users/fishroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishroot/subscriptions","organizations_url":"https://api.github.com/users/fishroot/orgs","repos_url":"https://api.github.com/users/fishroot/repos","events_url":"https://api.github.com/users/fishroot/events{/privacy}","received_events_url":"https://api.github.com/users/fishroot/received_events","type":"User","site_admin":false},"labels":[{"id":962650520,"node_id":"MDU6TGFiZWw5NjI2NTA1MjA=","url":"https://api.github.com/repos/fishroot/nemoa/labels/area:%20api:%20model","name":"area: api: model","color":"0052cc","default":false},{"id":189857989,"node_id":"MDU6TGFiZWwxODk4NTc5ODk=","url":"https://api.github.com/repos/fishroot/nemoa/labels/todo:%20fix%20major%20bug","name":"todo: fix major bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":{"login":"fishroot","id":4815253,"node_id":"MDQ6VXNlcjQ4MTUyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4815253?v=4","gravatar_id":"","url":"https://api.github.com/users/fishroot","html_url":"https://github.com/fishroot","followers_url":"https://api.github.com/users/fishroot/followers","following_url":"https://api.github.com/users/fishroot/following{/other_user}","gists_url":"https://api.github.com/users/fishroot/gists{/gist_id}","starred_url":"https://api.github.com/users/fishroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishroot/subscriptions","organizations_url":"https://api.github.com/users/fishroot/orgs","repos_url":"https://api.github.com/users/fishroot/repos","events_url":"https://api.github.com/users/fishroot/events{/privacy}","received_events_url":"https://api.github.com/users/fishroot/received_events","type":"User","site_admin":false},"assignees":[{"login":"fishroot","id":4815253,"node_id":"MDQ6VXNlcjQ4MTUyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4815253?v=4","gravatar_id":"","url":"https://api.github.com/users/fishroot","html_url":"https://github.com/fishroot","followers_url":"https://api.github.com/users/fishroot/followers","following_url":"https://api.github.com/users/fishroot/following{/other_user}","gists_url":"https://api.github.com/users/fishroot/gists{/gist_id}","starred_url":"https://api.github.com/users/fishroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishroot/subscriptions","organizations_url":"https://api.github.com/users/fishroot/orgs","repos_url":"https://api.github.com/users/fishroot/repos","events_url":"https://api.github.com/users/fishroot/events{/privacy}","received_events_url":"https://api.github.com/users/fishroot/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-06-13T20:23:08Z","updated_at":"2018-06-22T06:45:46Z","closed_at":null,"author_association":"OWNER","body":"```\r\nIn [4]: model.show()\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\session\\scripts\\console.py in <module>()\r\n----> 1 model.show()\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\model\\classes\\base.py in show(self, *args, **kwargs)\r\n    421     def show(self, *args, **kwargs):\r\n    422         \"\"\"Show model as image.\"\"\"\r\n--> 423         return nemoa.model.show(self, *args, **kwargs)\r\n    424\r\n    425     def copy(self, *args, **kwargs):\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\model\\__init__.py in show(*args, **kwargs)\r\n     50 def show(*args, **kwargs):\r\n     51     \"\"\"Show model as image.\"\"\"\r\n---> 52     return nemoa.model.exports.show(*args, **kwargs)\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\model\\exports\\__init__.py in show(model, *args, **kwargs)\r\n     91 def show(model, *args, **kwargs):\r\n     92     \"\"\" \"\"\"\r\n---> 93     return nemoa.model.exports.image.show(model, *args, **kwargs)\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\model\\exports\\image.py in show(model, plot, *args, **kwargs)\r\n    102\r\n    103     # create and show plot\r\n--> 104     if plot.create(model): plot.show()\r\n    105\r\n    106     # clear figures and release memory\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\model\\exports\\image.py in create(self, model)\r\n    135         # get units and edges\r\n    136         units = self.settings.get('units')\r\n--> 137         edges = [(i, o) for i in units[0] for o in units[1]\r\n    138             if not o == i]\r\n    139\r\n\r\nTypeError: 'NoneType' object is not iterable\r\n```"},"comment":{"url":"https://api.github.com/repos/fishroot/nemoa/issues/comments/399338779","html_url":"https://github.com/fishroot/nemoa/issues/117#issuecomment-399338779","issue_url":"https://api.github.com/repos/fishroot/nemoa/issues/117","id":399338779,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTMzODc3OQ==","user":{"login":"fishroot","id":4815253,"node_id":"MDQ6VXNlcjQ4MTUyNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/4815253?v=4","gravatar_id":"","url":"https://api.github.com/users/fishroot","html_url":"https://github.com/fishroot","followers_url":"https://api.github.com/users/fishroot/followers","following_url":"https://api.github.com/users/fishroot/following{/other_user}","gists_url":"https://api.github.com/users/fishroot/gists{/gist_id}","starred_url":"https://api.github.com/users/fishroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fishroot/subscriptions","organizations_url":"https://api.github.com/users/fishroot/orgs","repos_url":"https://api.github.com/users/fishroot/repos","events_url":"https://api.github.com/users/fishroot/events{/privacy}","received_events_url":"https://api.github.com/users/fishroot/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T06:45:46Z","updated_at":"2018-06-22T06:45:46Z","author_association":"OWNER","body":"```\r\nnemoa 0.5.45\r\n\r\nIn [1]: model = open('model', 'sinus', workspace = 'tutorial')\r\n\r\nIn [2]: model.evaluate('system', 'relations', 'induction')\r\ncould not evaluate system units: unknown algorithm name 'expect'. (see logfile for debug info)\r\nNone\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\session\\scripts\\console.py in <module>()\r\n----> 1 model.evaluate('system', 'relations', 'induction')\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\model\\classes\\base.py in evaluate(self, key, *args, **kwargs)\r\n    408                     self.dataset.set('copy', dataset_backup)\r\n    409\r\n--> 410             return self.system.evaluate(data, *args, **kwargs)\r\n    411\r\n    412         return nemoa.log('warning', 'could not evaluate model')\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\system\\classes\\base.py in evaluate(self, data, *args, **kwargs)\r\n   1608         # evaluate system relations\r\n   1609         if args[0] == 'relations':\r\n-> 1610             return self._evaluate_relation(data, *args[1:], **kwargs)\r\n   1611\r\n   1612         # evaluate system\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\system\\classes\\base.py in _evaluate_relation(self, data, func, evalstat, **kwargs)\r\n   1848\r\n   1849         # perform evaluation\r\n-> 1850         values = algorithm['reference'](*eargs, **ekwargs)\r\n   1851         #try: values = algorithm['reference'](*eargs, **ekwargs)\r\n   1852         #except: return nemoa.log('error', \"\"\"\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\common\\decorators.py in wrapped(self, *args, **kwargs)\r\n     26     def wrapper(method):\r\n     27         def wrapped(self, *args, **kwargs):\r\n---> 28             return method(self, *args, **kwargs)\r\n     29         for key, val in attr.items():\r\n     30             setattr(wrapped, key, val)\r\n\r\nC:\\Program Files\\Python36\\lib\\site-packages\\nemoa\\system\\classes\\base.py in _get_induction(self, data, mapping, points, amplify, gauge, contrast, **kwargs)\r\n   1237\r\n   1238                 for outunit in outputs:\r\n-> 1239                     C[outunit][:, p_id] = o_expect[outunit]\r\n   1240\r\n   1241             # calculate mean of standard deviations of outputs\r\n\r\nTypeError: 'NoneType' object is not subscriptable\r\n```"}}
{"actor":{"display_login":"fishroot"}}