{"action":"opened","issue":{"url":"https://api.github.com/repos/diana-hep/pyhf/issues/264","repository_url":"https://api.github.com/repos/diana-hep/pyhf","labels_url":"https://api.github.com/repos/diana-hep/pyhf/issues/264/labels{/name}","comments_url":"https://api.github.com/repos/diana-hep/pyhf/issues/264/comments","events_url":"https://api.github.com/repos/diana-hep/pyhf/issues/264/events","html_url":"https://github.com/diana-hep/pyhf/issues/264","id":360663615,"node_id":"MDU6SXNzdWUzNjA2NjM2MTU=","number":264,"title":"Suggestion: expose model library on command line? 'pyhf model --template'","user":{"login":"lukasheinrich","id":2318083,"node_id":"MDQ6VXNlcjIzMTgwODM=","avatar_url":"https://avatars2.githubusercontent.com/u/2318083?v=4","gravatar_id":"","url":"https://api.github.com/users/lukasheinrich","html_url":"https://github.com/lukasheinrich","followers_url":"https://api.github.com/users/lukasheinrich/followers","following_url":"https://api.github.com/users/lukasheinrich/following{/other_user}","gists_url":"https://api.github.com/users/lukasheinrich/gists{/gist_id}","starred_url":"https://api.github.com/users/lukasheinrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukasheinrich/subscriptions","organizations_url":"https://api.github.com/users/lukasheinrich/orgs","repos_url":"https://api.github.com/users/lukasheinrich/repos","events_url":"https://api.github.com/users/lukasheinrich/events{/privacy}","received_events_url":"https://api.github.com/users/lukasheinrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-16T18:08:49Z","updated_at":"2018-09-16T18:08:49Z","closed_at":null,"author_association":"COLLABORATOR","body":"# Description\r\n\r\nWe keep a small (ok, it's one entry) library of example models in `pyhf.simplemodels`, which makes it easy to get started (see the nice example we have in `README`)\r\n\r\nIt might be interesting to expose this on the command line e.g. a `pyhf model` command that dumps a fully specified pyhf spec from a simpler input JSON (which we don't really validate, it's not another spec, but just a short-cut, we should keep this dead-simple key-value JSON without any nesting)\r\n\r\nI'm not sure how I feel about this, so curious about inputs\r\n\r\n```\r\npyhf model --template hepdata_like --signal 5.0 --bkg 50. --bkg_uncrt 7. | pyhf cls\r\n```\r\n\r\n```\r\ncat << EOF| pyhf model --template hepdata_like |pyhf cls\r\n{ \r\n\"signal\": 50.,\r\n\"bkg\": 50.,\r\n\"bkg_uncrt\": 7. \r\n}\r\nEOF\r\n```\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"lukasheinrich"}}