{"action":"closed","issue":{"url":"https://api.github.com/repos/anthofflab/Mimi.jl/issues/266","repository_url":"https://api.github.com/repos/anthofflab/Mimi.jl","labels_url":"https://api.github.com/repos/anthofflab/Mimi.jl/issues/266/labels{/name}","comments_url":"https://api.github.com/repos/anthofflab/Mimi.jl/issues/266/comments","events_url":"https://api.github.com/repos/anthofflab/Mimi.jl/issues/266/events","html_url":"https://github.com/anthofflab/Mimi.jl/issues/266","id":342463497,"node_id":"MDU6SXNzdWUzNDI0NjM0OTc=","number":266,"title":"@defmodel index using a variable","user":{"login":"lrennels","id":31779240,"node_id":"MDQ6VXNlcjMxNzc5MjQw","avatar_url":"https://avatars0.githubusercontent.com/u/31779240?v=4","gravatar_id":"","url":"https://api.github.com/users/lrennels","html_url":"https://github.com/lrennels","followers_url":"https://api.github.com/users/lrennels/followers","following_url":"https://api.github.com/users/lrennels/following{/other_user}","gists_url":"https://api.github.com/users/lrennels/gists{/gist_id}","starred_url":"https://api.github.com/users/lrennels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrennels/subscriptions","organizations_url":"https://api.github.com/users/lrennels/orgs","repos_url":"https://api.github.com/users/lrennels/repos","events_url":"https://api.github.com/users/lrennels/events{/privacy}","received_events_url":"https://api.github.com/users/lrennels/received_events","type":"User","site_admin":false},"labels":[{"id":245010043,"node_id":"MDU6TGFiZWwyNDUwMTAwNDM=","url":"https://api.github.com/repos/anthofflab/Mimi.jl/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"lrennels","id":31779240,"node_id":"MDQ6VXNlcjMxNzc5MjQw","avatar_url":"https://avatars0.githubusercontent.com/u/31779240?v=4","gravatar_id":"","url":"https://api.github.com/users/lrennels","html_url":"https://github.com/lrennels","followers_url":"https://api.github.com/users/lrennels/followers","following_url":"https://api.github.com/users/lrennels/following{/other_user}","gists_url":"https://api.github.com/users/lrennels/gists{/gist_id}","starred_url":"https://api.github.com/users/lrennels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrennels/subscriptions","organizations_url":"https://api.github.com/users/lrennels/orgs","repos_url":"https://api.github.com/users/lrennels/repos","events_url":"https://api.github.com/users/lrennels/events{/privacy}","received_events_url":"https://api.github.com/users/lrennels/received_events","type":"User","site_admin":false},"assignees":[{"login":"lrennels","id":31779240,"node_id":"MDQ6VXNlcjMxNzc5MjQw","avatar_url":"https://avatars0.githubusercontent.com/u/31779240?v=4","gravatar_id":"","url":"https://api.github.com/users/lrennels","html_url":"https://github.com/lrennels","followers_url":"https://api.github.com/users/lrennels/followers","following_url":"https://api.github.com/users/lrennels/following{/other_user}","gists_url":"https://api.github.com/users/lrennels/gists{/gist_id}","starred_url":"https://api.github.com/users/lrennels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lrennels/subscriptions","organizations_url":"https://api.github.com/users/lrennels/orgs","repos_url":"https://api.github.com/users/lrennels/repos","events_url":"https://api.github.com/users/lrennels/events{/privacy}","received_events_url":"https://api.github.com/users/lrennels/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/anthofflab/Mimi.jl/milestones/17","html_url":"https://github.com/anthofflab/Mimi.jl/milestone/17","labels_url":"https://api.github.com/repos/anthofflab/Mimi.jl/milestones/17/labels","id":2991894,"node_id":"MDk6TWlsZXN0b25lMjk5MTg5NA==","number":17,"title":"v0.5.0","description":"Better timestep support.","creator":{"login":"davidanthoff","id":1036561,"node_id":"MDQ6VXNlcjEwMzY1NjE=","avatar_url":"https://avatars3.githubusercontent.com/u/1036561?v=4","gravatar_id":"","url":"https://api.github.com/users/davidanthoff","html_url":"https://github.com/davidanthoff","followers_url":"https://api.github.com/users/davidanthoff/followers","following_url":"https://api.github.com/users/davidanthoff/following{/other_user}","gists_url":"https://api.github.com/users/davidanthoff/gists{/gist_id}","starred_url":"https://api.github.com/users/davidanthoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidanthoff/subscriptions","organizations_url":"https://api.github.com/users/davidanthoff/orgs","repos_url":"https://api.github.com/users/davidanthoff/repos","events_url":"https://api.github.com/users/davidanthoff/events{/privacy}","received_events_url":"https://api.github.com/users/davidanthoff/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":3,"state":"open","created_at":"2017-12-20T21:25:20Z","updated_at":"2018-07-18T22:06:46Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-07-18T19:37:30Z","updated_at":"2018-07-18T22:06:46Z","closed_at":"2018-07-18T22:06:46Z","author_association":"COLLABORATOR","body":"It seems there is a parson or scoping error in `@defmodel`, since the following throws an error saying that `nsteps` is not defined.  The variable is, however, in scope of `@defmodel` since it can `println(nsteps)`.\r\n\r\n```\r\nconst global nsteps = 1050\r\n@defmodel FUND begin\r\n     ...\r\n     index[time]     = collect(1950:1950+nsteps)\r\n     ...\r\nend\r\n```\r\n\r\nThis bug persists even if the variable is moved inside the macro and made a local variable.\r\n"}}
{"actor":{"display_login":"lrennels"}}