{"action":"reopened","issue":{"url":"https://api.github.com/repos/saeedsltm/PyVelest/issues/2","repository_url":"https://api.github.com/repos/saeedsltm/PyVelest","labels_url":"https://api.github.com/repos/saeedsltm/PyVelest/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/saeedsltm/PyVelest/issues/2/comments","events_url":"https://api.github.com/repos/saeedsltm/PyVelest/issues/2/events","html_url":"https://github.com/saeedsltm/PyVelest/issues/2","id":387854223,"node_id":"MDU6SXNzdWUzODc4NTQyMjM=","number":2,"title":"UnboundLocalError running PyVelest.py","user":{"login":"dsiervo","id":17153455,"node_id":"MDQ6VXNlcjE3MTUzNDU1","avatar_url":"https://avatars2.githubusercontent.com/u/17153455?v=4","gravatar_id":"","url":"https://api.github.com/users/dsiervo","html_url":"https://github.com/dsiervo","followers_url":"https://api.github.com/users/dsiervo/followers","following_url":"https://api.github.com/users/dsiervo/following{/other_user}","gists_url":"https://api.github.com/users/dsiervo/gists{/gist_id}","starred_url":"https://api.github.com/users/dsiervo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsiervo/subscriptions","organizations_url":"https://api.github.com/users/dsiervo/orgs","repos_url":"https://api.github.com/users/dsiervo/repos","events_url":"https://api.github.com/users/dsiervo/events{/privacy}","received_events_url":"https://api.github.com/users/dsiervo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-05T17:01:57Z","updated_at":"2018-12-05T21:16:42Z","closed_at":null,"author_association":"NONE","body":"python version: 2.7.14\r\nOS system: Ubuntu 14.04\r\n\r\nHello, wonderful code, very useful to run velest. I try to run your code but when I run PyVelest.py with your data set, the following error is generated, I appreciate your help. Kind regards: \r\n\r\n```\r\n+++ Enter Project Name: <Please use the name of velocity model you're using>\r\n\r\ninitial.mod\r\n\r\n+++ Read VELEST input parameters ...\r\n+++ Write VELEST control file ...\r\n+++ Plotting data statistics ...\r\n+++ Make synthetic velocity models ...\r\n+++ Run VELEST ...\r\n   --- 50 synthetic model(s) found ...\r\n   --- Run for synthetic model: 1\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 2\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 3\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 4\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 5\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 6\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 7\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 8\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 9\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 10\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 11\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 12\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 13\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 14\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 15\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 16\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 17\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 18\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 19\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 20\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 21\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 22\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 23\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 24\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 25\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 26\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 27\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 28\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 29\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 30\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 31\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 32\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 33\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 34\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 35\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 36\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 37\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 38\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 39\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 40\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 41\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 42\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 43\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 44\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 45\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 46\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 47\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 48\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 49 \r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n   --- Run for synthetic model: 50\r\nSTOP ...end...(VELEST was running in SINGLE-EVENT-OPTION)\r\n+++ Analyse VELEST outputs ...\r\nTraceback (most recent call last):\r\n  File \"PyVelest.py\", line 3135, in <module>\r\n    start.analyse_velest_res()\r\n  File \"PyVelest.py\", line 767, in analyse_velest_res\r\n    self.svel['P'][sm].append(p_vel)\r\nUnboundLocalError: local variable 'p_vel' referenced before assignment\r\n```\r\n"}}
{"actor":{"display_login":"dsiervo"}}