{"action":"created","comment":{"url":"https://api.github.com/repos/opensim-org/opensim-models/pulls/comments/232077159","pull_request_review_id":173193221,"id":232077159,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMjA3NzE1OQ==","diff_hunk":"@@ -23,13 +24,33 @@\n     # Without this next line, the print above does not necessarily\n     # precede OpenSim's output.\n     sys.stdout.flush()\n+    filename = osimpaths[i]\n+    modelname = modelNames[i]\n     try:\n-        model = om.Model(osimpaths[i])\n+        model = opensim.Model(filename)\n         s = model.initSystem()\n     except Exception as e:\n-        print(\"Oops, Model '%s' failed:\\n%s\" % (modelNames[i], e.message))\n+        print(\"Oops, Model '%s' failed:\\n%s\" % (modelname, e.message))\n         sys.exit(1)\n-        \n-print(\"All models loaded successfully.\")\n \n+    # Print the 4.0 version to file and then read back into memory\n+    filename_new = filename.replace('.osim','_new.osim')\n+    modelName_new = modelName.replace('.osim','_new.osim')","path":"test_models.py","position":29,"original_position":29,"commit_id":"950ff8149cd0d701074df14646f6681c06e3348d","original_commit_id":"950ff8149cd0d701074df14646f6681c06e3348d","user":{"login":"chrisdembia","id":846001,"node_id":"MDQ6VXNlcjg0NjAwMQ==","avatar_url":"https://avatars0.githubusercontent.com/u/846001?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisdembia","html_url":"https://github.com/chrisdembia","followers_url":"https://api.github.com/users/chrisdembia/followers","following_url":"https://api.github.com/users/chrisdembia/following{/other_user}","gists_url":"https://api.github.com/users/chrisdembia/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdembia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdembia/subscriptions","organizations_url":"https://api.github.com/users/chrisdembia/orgs","repos_url":"https://api.github.com/users/chrisdembia/repos","events_url":"https://api.github.com/users/chrisdembia/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdembia/received_events","type":"User","site_admin":false},"body":"This might need to be `modelname` with a lower-case `n`.","created_at":"2018-11-08T22:01:44Z","updated_at":"2018-11-08T22:01:45Z","html_url":"https://github.com/opensim-org/opensim-models/pull/97#discussion_r232077159","pull_request_url":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/opensim-org/opensim-models/pulls/comments/232077159"},"html":{"href":"https://github.com/opensim-org/opensim-models/pull/97#discussion_r232077159"},"pull_request":{"href":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97"}}},"pull_request":{"url":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97","id":228440504,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NDQwNTA0","html_url":"https://github.com/opensim-org/opensim-models/pull/97","diff_url":"https://github.com/opensim-org/opensim-models/pull/97.diff","patch_url":"https://github.com/opensim-org/opensim-models/pull/97.patch","issue_url":"https://api.github.com/repos/opensim-org/opensim-models/issues/97","number":97,"state":"open","locked":false,"title":"Test model consistency","user":{"login":"jimmyDunne","id":5296507,"node_id":"MDQ6VXNlcjUyOTY1MDc=","avatar_url":"https://avatars3.githubusercontent.com/u/5296507?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmyDunne","html_url":"https://github.com/jimmyDunne","followers_url":"https://api.github.com/users/jimmyDunne/followers","following_url":"https://api.github.com/users/jimmyDunne/following{/other_user}","gists_url":"https://api.github.com/users/jimmyDunne/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyDunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyDunne/subscriptions","organizations_url":"https://api.github.com/users/jimmyDunne/orgs","repos_url":"https://api.github.com/users/jimmyDunne/repos","events_url":"https://api.github.com/users/jimmyDunne/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyDunne/received_events","type":"User","site_admin":false},"body":"Test that the API can read its own printed models","created_at":"2018-11-05T18:01:16Z","updated_at":"2018-11-08T22:01:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2359b83963b0e54d3dcf7d79d456b2d9a40a461","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97/commits","review_comments_url":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97/comments","review_comment_url":"https://api.github.com/repos/opensim-org/opensim-models/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opensim-org/opensim-models/issues/97/comments","statuses_url":"https://api.github.com/repos/opensim-org/opensim-models/statuses/950ff8149cd0d701074df14646f6681c06e3348d","head":{"label":"opensim-org:test_Model_Consistency","ref":"test_Model_Consistency","sha":"950ff8149cd0d701074df14646f6681c06e3348d","user":{"login":"opensim-org","id":4370782,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNzA3ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/4370782?v=4","gravatar_id":"","url":"https://api.github.com/users/opensim-org","html_url":"https://github.com/opensim-org","followers_url":"https://api.github.com/users/opensim-org/followers","following_url":"https://api.github.com/users/opensim-org/following{/other_user}","gists_url":"https://api.github.com/users/opensim-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensim-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensim-org/subscriptions","organizations_url":"https://api.github.com/users/opensim-org/orgs","repos_url":"https://api.github.com/users/opensim-org/repos","events_url":"https://api.github.com/users/opensim-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensim-org/received_events","type":"Organization","site_admin":false},"repo":{"id":20775720,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc3NTcyMA==","name":"opensim-models","full_name":"opensim-org/opensim-models","private":false,"owner":{"login":"opensim-org","id":4370782,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNzA3ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/4370782?v=4","gravatar_id":"","url":"https://api.github.com/users/opensim-org","html_url":"https://github.com/opensim-org","followers_url":"https://api.github.com/users/opensim-org/followers","following_url":"https://api.github.com/users/opensim-org/following{/other_user}","gists_url":"https://api.github.com/users/opensim-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensim-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensim-org/subscriptions","organizations_url":"https://api.github.com/users/opensim-org/orgs","repos_url":"https://api.github.com/users/opensim-org/repos","events_url":"https://api.github.com/users/opensim-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensim-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/opensim-org/opensim-models","description":"SimTK OpenSim models (.osim) and related example files that are distributed with OpenSim.","fork":false,"url":"https://api.github.com/repos/opensim-org/opensim-models","forks_url":"https://api.github.com/repos/opensim-org/opensim-models/forks","keys_url":"https://api.github.com/repos/opensim-org/opensim-models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opensim-org/opensim-models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opensim-org/opensim-models/teams","hooks_url":"https://api.github.com/repos/opensim-org/opensim-models/hooks","issue_events_url":"https://api.github.com/repos/opensim-org/opensim-models/issues/events{/number}","events_url":"https://api.github.com/repos/opensim-org/opensim-models/events","assignees_url":"https://api.github.com/repos/opensim-org/opensim-models/assignees{/user}","branches_url":"https://api.github.com/repos/opensim-org/opensim-models/branches{/branch}","tags_url":"https://api.github.com/repos/opensim-org/opensim-models/tags","blobs_url":"https://api.github.com/repos/opensim-org/opensim-models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opensim-org/opensim-models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opensim-org/opensim-models/git/refs{/sha}","trees_url":"https://api.github.com/repos/opensim-org/opensim-models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opensim-org/opensim-models/statuses/{sha}","languages_url":"https://api.github.com/repos/opensim-org/opensim-models/languages","stargazers_url":"https://api.github.com/repos/opensim-org/opensim-models/stargazers","contributors_url":"https://api.github.com/repos/opensim-org/opensim-models/contributors","subscribers_url":"https://api.github.com/repos/opensim-org/opensim-models/subscribers","subscription_url":"https://api.github.com/repos/opensim-org/opensim-models/subscription","commits_url":"https://api.github.com/repos/opensim-org/opensim-models/commits{/sha}","git_commits_url":"https://api.github.com/repos/opensim-org/opensim-models/git/commits{/sha}","comments_url":"https://api.github.com/repos/opensim-org/opensim-models/comments{/number}","issue_comment_url":"https://api.github.com/repos/opensim-org/opensim-models/issues/comments{/number}","contents_url":"https://api.github.com/repos/opensim-org/opensim-models/contents/{+path}","compare_url":"https://api.github.com/repos/opensim-org/opensim-models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opensim-org/opensim-models/merges","archive_url":"https://api.github.com/repos/opensim-org/opensim-models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opensim-org/opensim-models/downloads","issues_url":"https://api.github.com/repos/opensim-org/opensim-models/issues{/number}","pulls_url":"https://api.github.com/repos/opensim-org/opensim-models/pulls{/number}","milestones_url":"https://api.github.com/repos/opensim-org/opensim-models/milestones{/number}","notifications_url":"https://api.github.com/repos/opensim-org/opensim-models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opensim-org/opensim-models/labels{/name}","releases_url":"https://api.github.com/repos/opensim-org/opensim-models/releases{/id}","deployments_url":"https://api.github.com/repos/opensim-org/opensim-models/deployments","created_at":"2014-06-12T17:01:52Z","updated_at":"2018-11-08T15:00:33Z","pushed_at":"2018-11-08T21:38:57Z","git_url":"git://github.com/opensim-org/opensim-models.git","ssh_url":"git@github.com:opensim-org/opensim-models.git","clone_url":"https://github.com/opensim-org/opensim-models.git","svn_url":"https://github.com/opensim-org/opensim-models","homepage":"opensim.stanford.edu","size":281769,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":4,"open_issues":20,"watchers":4,"default_branch":"master"}},"base":{"label":"opensim-org:master","ref":"master","sha":"7aaec98bf4aedb1ba8206096a8f49a907b024069","user":{"login":"opensim-org","id":4370782,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNzA3ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/4370782?v=4","gravatar_id":"","url":"https://api.github.com/users/opensim-org","html_url":"https://github.com/opensim-org","followers_url":"https://api.github.com/users/opensim-org/followers","following_url":"https://api.github.com/users/opensim-org/following{/other_user}","gists_url":"https://api.github.com/users/opensim-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensim-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensim-org/subscriptions","organizations_url":"https://api.github.com/users/opensim-org/orgs","repos_url":"https://api.github.com/users/opensim-org/repos","events_url":"https://api.github.com/users/opensim-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensim-org/received_events","type":"Organization","site_admin":false},"repo":{"id":20775720,"node_id":"MDEwOlJlcG9zaXRvcnkyMDc3NTcyMA==","name":"opensim-models","full_name":"opensim-org/opensim-models","private":false,"owner":{"login":"opensim-org","id":4370782,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQzNzA3ODI=","avatar_url":"https://avatars0.githubusercontent.com/u/4370782?v=4","gravatar_id":"","url":"https://api.github.com/users/opensim-org","html_url":"https://github.com/opensim-org","followers_url":"https://api.github.com/users/opensim-org/followers","following_url":"https://api.github.com/users/opensim-org/following{/other_user}","gists_url":"https://api.github.com/users/opensim-org/gists{/gist_id}","starred_url":"https://api.github.com/users/opensim-org/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opensim-org/subscriptions","organizations_url":"https://api.github.com/users/opensim-org/orgs","repos_url":"https://api.github.com/users/opensim-org/repos","events_url":"https://api.github.com/users/opensim-org/events{/privacy}","received_events_url":"https://api.github.com/users/opensim-org/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/opensim-org/opensim-models","description":"SimTK OpenSim models (.osim) and related example files that are distributed with OpenSim.","fork":false,"url":"https://api.github.com/repos/opensim-org/opensim-models","forks_url":"https://api.github.com/repos/opensim-org/opensim-models/forks","keys_url":"https://api.github.com/repos/opensim-org/opensim-models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opensim-org/opensim-models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opensim-org/opensim-models/teams","hooks_url":"https://api.github.com/repos/opensim-org/opensim-models/hooks","issue_events_url":"https://api.github.com/repos/opensim-org/opensim-models/issues/events{/number}","events_url":"https://api.github.com/repos/opensim-org/opensim-models/events","assignees_url":"https://api.github.com/repos/opensim-org/opensim-models/assignees{/user}","branches_url":"https://api.github.com/repos/opensim-org/opensim-models/branches{/branch}","tags_url":"https://api.github.com/repos/opensim-org/opensim-models/tags","blobs_url":"https://api.github.com/repos/opensim-org/opensim-models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opensim-org/opensim-models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opensim-org/opensim-models/git/refs{/sha}","trees_url":"https://api.github.com/repos/opensim-org/opensim-models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opensim-org/opensim-models/statuses/{sha}","languages_url":"https://api.github.com/repos/opensim-org/opensim-models/languages","stargazers_url":"https://api.github.com/repos/opensim-org/opensim-models/stargazers","contributors_url":"https://api.github.com/repos/opensim-org/opensim-models/contributors","subscribers_url":"https://api.github.com/repos/opensim-org/opensim-models/subscribers","subscription_url":"https://api.github.com/repos/opensim-org/opensim-models/subscription","commits_url":"https://api.github.com/repos/opensim-org/opensim-models/commits{/sha}","git_commits_url":"https://api.github.com/repos/opensim-org/opensim-models/git/commits{/sha}","comments_url":"https://api.github.com/repos/opensim-org/opensim-models/comments{/number}","issue_comment_url":"https://api.github.com/repos/opensim-org/opensim-models/issues/comments{/number}","contents_url":"https://api.github.com/repos/opensim-org/opensim-models/contents/{+path}","compare_url":"https://api.github.com/repos/opensim-org/opensim-models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opensim-org/opensim-models/merges","archive_url":"https://api.github.com/repos/opensim-org/opensim-models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opensim-org/opensim-models/downloads","issues_url":"https://api.github.com/repos/opensim-org/opensim-models/issues{/number}","pulls_url":"https://api.github.com/repos/opensim-org/opensim-models/pulls{/number}","milestones_url":"https://api.github.com/repos/opensim-org/opensim-models/milestones{/number}","notifications_url":"https://api.github.com/repos/opensim-org/opensim-models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opensim-org/opensim-models/labels{/name}","releases_url":"https://api.github.com/repos/opensim-org/opensim-models/releases{/id}","deployments_url":"https://api.github.com/repos/opensim-org/opensim-models/deployments","created_at":"2014-06-12T17:01:52Z","updated_at":"2018-11-08T15:00:33Z","pushed_at":"2018-11-08T21:38:57Z","git_url":"git://github.com/opensim-org/opensim-models.git","ssh_url":"git@github.com:opensim-org/opensim-models.git","clone_url":"https://github.com/opensim-org/opensim-models.git","svn_url":"https://github.com/opensim-org/opensim-models","homepage":"opensim.stanford.edu","size":281769,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":20,"license":null,"forks":4,"open_issues":20,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97"},"html":{"href":"https://github.com/opensim-org/opensim-models/pull/97"},"issue":{"href":"https://api.github.com/repos/opensim-org/opensim-models/issues/97"},"comments":{"href":"https://api.github.com/repos/opensim-org/opensim-models/issues/97/comments"},"review_comments":{"href":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97/comments"},"review_comment":{"href":"https://api.github.com/repos/opensim-org/opensim-models/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opensim-org/opensim-models/pulls/97/commits"},"statuses":{"href":"https://api.github.com/repos/opensim-org/opensim-models/statuses/950ff8149cd0d701074df14646f6681c06e3348d"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"chrisdembia"}}