{"action":"created","issue":{"url":"https://api.github.com/repos/cyclus/cymetric/issues/60","repository_url":"https://api.github.com/repos/cyclus/cymetric","labels_url":"https://api.github.com/repos/cyclus/cymetric/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/cyclus/cymetric/issues/60/comments","events_url":"https://api.github.com/repos/cyclus/cymetric/issues/60/events","html_url":"https://github.com/cyclus/cymetric/issues/60","id":72172999,"number":60,"title":"Bad No-Metric Error ","user":{"login":"gidden","id":1392657,"avatar_url":"https://avatars.githubusercontent.com/u/1392657?v=3","gravatar_id":"","url":"https://api.github.com/users/gidden","html_url":"https://github.com/gidden","followers_url":"https://api.github.com/users/gidden/followers","following_url":"https://api.github.com/users/gidden/following{/other_user}","gists_url":"https://api.github.com/users/gidden/gists{/gist_id}","starred_url":"https://api.github.com/users/gidden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gidden/subscriptions","organizations_url":"https://api.github.com/users/gidden/orgs","repos_url":"https://api.github.com/users/gidden/repos","events_url":"https://api.github.com/users/gidden/events{/privacy}","received_events_url":"https://api.github.com/users/gidden/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"opotowsky","id":5347433,"avatar_url":"https://avatars.githubusercontent.com/u/5347433?v=3","gravatar_id":"","url":"https://api.github.com/users/opotowsky","html_url":"https://github.com/opotowsky","followers_url":"https://api.github.com/users/opotowsky/followers","following_url":"https://api.github.com/users/opotowsky/following{/other_user}","gists_url":"https://api.github.com/users/opotowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/opotowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opotowsky/subscriptions","organizations_url":"https://api.github.com/users/opotowsky/orgs","repos_url":"https://api.github.com/users/opotowsky/repos","events_url":"https://api.github.com/users/opotowsky/events{/privacy}","received_events_url":"https://api.github.com/users/opotowsky/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cyclus/cymetric/milestones/2","html_url":"https://github.com/cyclus/cymetric/milestones/v1.4","labels_url":"https://api.github.com/repos/cyclus/cymetric/milestones/2/labels","id":1099322,"number":2,"title":"v1.4","description":"","creator":{"login":"opotowsky","id":5347433,"avatar_url":"https://avatars.githubusercontent.com/u/5347433?v=3","gravatar_id":"","url":"https://api.github.com/users/opotowsky","html_url":"https://github.com/opotowsky","followers_url":"https://api.github.com/users/opotowsky/followers","following_url":"https://api.github.com/users/opotowsky/following{/other_user}","gists_url":"https://api.github.com/users/opotowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/opotowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opotowsky/subscriptions","organizations_url":"https://api.github.com/users/opotowsky/orgs","repos_url":"https://api.github.com/users/opotowsky/repos","events_url":"https://api.github.com/users/opotowsky/events{/privacy}","received_events_url":"https://api.github.com/users/opotowsky/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":13,"state":"open","created_at":"2015-05-06T22:37:05Z","updated_at":"2016-05-02T17:40:28Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-04-30T14:08:11Z","updated_at":"2016-05-02T17:58:37Z","closed_at":null,"body":"This is non intuitive\r\n```\r\n$ cymetric cyclus.sqlite -e 'print(Foo[:])'\r\n/home/gidden/.local/lib/python2.7/site-packages/cymetric/metrics.py:10: QAWarning: pyne.data is not yet QA compliant.\r\n  from pyne import data\r\n/home/gidden/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.material is not yet QA compliant.\r\n  import pyne.enrichment as enr\r\n/home/gidden/.local/lib/python2.7/site-packages/cymetric/metrics.py:11: QAWarning: pyne.enrichment is not yet QA compliant.\r\n  import pyne.enrichment as enr\r\nTraceback (most recent call last):\r\n  File \"/home/gidden/.local/bin/cymetric\", line 4, in <module>\r\n    main()\r\n  File \"/home/gidden/.local/lib/python2.7/site-packages/cymetric/main.py\", line 36, in main\r\n    exec_code(ns.exec_code, db, write=ns.write)\r\n  File \"/home/gidden/.local/lib/python2.7/site-packages/cymetric/execution.py\", line 217, in exec_code\r\n    exec(code, glb, loc)\r\n  File \"<string>\", line 1, in <module>\r\n  File \"/home/gidden/.local/lib/python2.7/site-packages/cymetric/execution.py\", line 38, in __getitem__\r\n    raise TypeError('ColumnProxy object {0!r} cannot be indexed'.format(self.name))\r\nTypeError: ColumnProxy object 'Foo' cannot be indexed\r\n```\r\n\r\nPerhaps some logic could be added to catch a bad metric and print something more graceful."},"comment":{"url":"https://api.github.com/repos/cyclus/cymetric/issues/comments/216310993","html_url":"https://github.com/cyclus/cymetric/issues/60#issuecomment-216310993","issue_url":"https://api.github.com/repos/cyclus/cymetric/issues/60","id":216310993,"user":{"login":"opotowsky","id":5347433,"avatar_url":"https://avatars.githubusercontent.com/u/5347433?v=3","gravatar_id":"","url":"https://api.github.com/users/opotowsky","html_url":"https://github.com/opotowsky","followers_url":"https://api.github.com/users/opotowsky/followers","following_url":"https://api.github.com/users/opotowsky/following{/other_user}","gists_url":"https://api.github.com/users/opotowsky/gists{/gist_id}","starred_url":"https://api.github.com/users/opotowsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opotowsky/subscriptions","organizations_url":"https://api.github.com/users/opotowsky/orgs","repos_url":"https://api.github.com/users/opotowsky/repos","events_url":"https://api.github.com/users/opotowsky/events{/privacy}","received_events_url":"https://api.github.com/users/opotowsky/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T17:58:37Z","updated_at":"2016-05-02T17:58:37Z","body":"Tried a number of ways with no luck, moving to 1.5"}}