{"action":"created","issue":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1409","repository_url":"https://api.github.com/repos/opensim-org/opensim-core","labels_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1409/labels{/name}","comments_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1409/comments","events_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1409/events","html_url":"https://github.com/opensim-org/opensim-core/issues/1409","id":189906207,"number":1409,"title":"Usability of DataTable_<ETX, ETY>::getRow() and appendRow()","user":{"login":"tkuchida","id":4203505,"avatar_url":"https://avatars.githubusercontent.com/u/4203505?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuchida","html_url":"https://github.com/tkuchida","followers_url":"https://api.github.com/users/tkuchida/followers","following_url":"https://api.github.com/users/tkuchida/following{/other_user}","gists_url":"https://api.github.com/users/tkuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuchida/subscriptions","organizations_url":"https://api.github.com/users/tkuchida/orgs","repos_url":"https://api.github.com/users/tkuchida/repos","events_url":"https://api.github.com/users/tkuchida/events{/privacy}","received_events_url":"https://api.github.com/users/tkuchida/received_events","type":"User","site_admin":false},"labels":[{"id":115100519,"url":"https://api.github.com/repos/opensim-org/opensim-core/labels/Documentation","name":"Documentation","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/opensim-org/opensim-core/milestones/1","html_url":"https://github.com/opensim-org/opensim-core/milestones/OpenSim%204.0","labels_url":"https://api.github.com/repos/opensim-org/opensim-core/milestones/1/labels","id":725618,"number":1,"title":"OpenSim 4.0","description":"","creator":{"login":"jenhicks","id":4510959,"avatar_url":"https://avatars.githubusercontent.com/u/4510959?v=3","gravatar_id":"","url":"https://api.github.com/users/jenhicks","html_url":"https://github.com/jenhicks","followers_url":"https://api.github.com/users/jenhicks/followers","following_url":"https://api.github.com/users/jenhicks/following{/other_user}","gists_url":"https://api.github.com/users/jenhicks/gists{/gist_id}","starred_url":"https://api.github.com/users/jenhicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenhicks/subscriptions","organizations_url":"https://api.github.com/users/jenhicks/orgs","repos_url":"https://api.github.com/users/jenhicks/repos","events_url":"https://api.github.com/users/jenhicks/events{/privacy}","received_events_url":"https://api.github.com/users/jenhicks/received_events","type":"User","site_admin":false},"open_issues":96,"closed_issues":387,"state":"open","created_at":"2014-07-18T21:08:06Z","updated_at":"2016-11-17T01:23:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-11-17T01:23:35Z","updated_at":"2016-11-17T01:40:45Z","closed_at":null,"body":"Likely an issue that can be addressed by adding an example to the doxygen for `DataTable_`. Here's a MWE:\r\n``` cpp\r\nTimeSeriesTableVec3 tableA;\r\ntableA.setColumnLabels({\"col0\", \"col1\"});\r\nSimTK::RowVector_<Vec3> row{2, Vec3(0.1, 0.2, 0.3)};\r\ntableA.appendRow(1.0, row);\r\n\r\nTimeSeriesTableVec3 tableB;\r\ntableB.setColumnLabels({\"col0\", \"col1\"});\r\ntableB.appendRow(tableA.getIndependentColumn()[0],\r\n    tableA.getRowAtIndex(0)); //looks like it should work, but doesn't\r\ntableB.appendRow(tableA.getIndependentColumn()[0],\r\n    static_cast<SimTK::RowVector_<Vec3>>(tableA.getRowAtIndex(0))); //works\r\n```\r\nThis user interface is slightly awkward since it seems like `tableA.getRowAtIndex()` should return an object that is consumable by `tableB.appendRow()`. Similar to #1384."},"comment":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/comments/261129380","html_url":"https://github.com/opensim-org/opensim-core/issues/1409#issuecomment-261129380","issue_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1409","id":261129380,"user":{"login":"klshrinidhi","id":1181669,"avatar_url":"https://avatars.githubusercontent.com/u/1181669?v=3","gravatar_id":"","url":"https://api.github.com/users/klshrinidhi","html_url":"https://github.com/klshrinidhi","followers_url":"https://api.github.com/users/klshrinidhi/followers","following_url":"https://api.github.com/users/klshrinidhi/following{/other_user}","gists_url":"https://api.github.com/users/klshrinidhi/gists{/gist_id}","starred_url":"https://api.github.com/users/klshrinidhi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klshrinidhi/subscriptions","organizations_url":"https://api.github.com/users/klshrinidhi/orgs","repos_url":"https://api.github.com/users/klshrinidhi/repos","events_url":"https://api.github.com/users/klshrinidhi/events{/privacy}","received_events_url":"https://api.github.com/users/klshrinidhi/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T01:40:45Z","updated_at":"2016-11-17T01:40:45Z","body":"Also worth mentioning is that my PR #1372 that I merged today adds functions `removeRowAtIndex` and `removeRow` if that can help avoid the above snippet until I add the overload."}}
{"actor":{"display_login":"klshrinidhi"}}