{"action":"created","issue":{"url":"https://api.github.com/repos/JohnAbel/gillespy/issues/8","labels_url":"https://api.github.com/repos/JohnAbel/gillespy/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/JohnAbel/gillespy/issues/8/comments","events_url":"https://api.github.com/repos/JohnAbel/gillespy/issues/8/events","html_url":"https://github.com/JohnAbel/gillespy/issues/8","id":65969675,"number":8,"title":"Adding model parameters - not a simple loop","user":{"login":"JohnAbel","id":2702272,"avatar_url":"https://avatars.githubusercontent.com/u/2702272?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnAbel","html_url":"https://github.com/JohnAbel","followers_url":"https://api.github.com/users/JohnAbel/followers","following_url":"https://api.github.com/users/JohnAbel/following{/other_user}","gists_url":"https://api.github.com/users/JohnAbel/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnAbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnAbel/subscriptions","organizations_url":"https://api.github.com/users/JohnAbel/orgs","repos_url":"https://api.github.com/users/JohnAbel/repos","events_url":"https://api.github.com/users/JohnAbel/events{/privacy}","received_events_url":"https://api.github.com/users/JohnAbel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-02T17:08:06Z","updated_at":"2015-04-02T18:07:02Z","closed_at":null,"body":"It would be useful if, having two arrays:\r\np_names = ['k1', 'k2']\r\np_values = [1, 2]\r\nwe could loop to add them.\r\n\r\nI normally do that with:\r\nfor i in xrange(num_parameters):\r\n    self.add_parameter(gillespy.Parameter(name = p_names[i], expression = p_values[i]))\r\n\r\nBut then when we make a reaction:\r\nr1 = gillespy.Reaction(reactants = x1, rate = k1) the rate is not defined. Is there a better way to do this?"},"comment":{"url":"https://api.github.com/repos/JohnAbel/gillespy/issues/comments/88994910","html_url":"https://github.com/JohnAbel/gillespy/issues/8#issuecomment-88994910","issue_url":"https://api.github.com/repos/JohnAbel/gillespy/issues/8","id":88994910,"user":{"login":"JohnAbel","id":2702272,"avatar_url":"https://avatars.githubusercontent.com/u/2702272?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnAbel","html_url":"https://github.com/JohnAbel","followers_url":"https://api.github.com/users/JohnAbel/followers","following_url":"https://api.github.com/users/JohnAbel/following{/other_user}","gists_url":"https://api.github.com/users/JohnAbel/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnAbel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnAbel/subscriptions","organizations_url":"https://api.github.com/users/JohnAbel/orgs","repos_url":"https://api.github.com/users/JohnAbel/repos","events_url":"https://api.github.com/users/JohnAbel/events{/privacy}","received_events_url":"https://api.github.com/users/JohnAbel/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T18:07:02Z","updated_at":"2015-04-02T18:07:02Z","body":"I won't be making changes unless we decide to implement it in both\npackages. It would make no sense to make them diverge.\n\nOn Thu, Apr 2, 2015 at 11:04 AM, Andreas Hellander <notifications@github.com\n> wrote:\n\n> I would like us to discuss the design and see if whatever changes we make\n> here, we also make in pyurdme, and vice versa.\n>\n> /Andreas\n> -------------------------------------------\n> Andreas Hellander\n> Associate Professor, Scientific Computing\n> Division of Scientific Computing\n> Department of Information Technology\n> Uppsala University\n>\n> On Apr 2, 2015, at 7:57 PM, J.H. Abel <notifications@github.com<mailto:\n> notifications@github.com>> wrote:\n>\n>\n> Andreas: I agree with the use of a dict. I will be picking back up on this\n> (getting StochKitODE to work as well) so we can definitely discuss tweaks.\n>\n> —\n> Reply to this email directly or view it on GitHub<\n> https://github.com/JohnAbel/gillespy/issues/8#issuecomment-88991873>.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/JohnAbel/gillespy/issues/8#issuecomment-88994363>.\n>\n\n\n\n-- \n\n*John H. Abel*\nPhD Student, Chemical Engineering\nUniversity of California, Santa Barbara\nEmail: jha@engr.ucsb.edu\nTel: (401)787-4253\n"}}