{"action":"created","issue":{"url":"https://api.github.com/repos/NREL/OpenStudio/issues/1590","labels_url":"https://api.github.com/repos/NREL/OpenStudio/issues/1590/labels{/name}","comments_url":"https://api.github.com/repos/NREL/OpenStudio/issues/1590/comments","events_url":"https://api.github.com/repos/NREL/OpenStudio/issues/1590/events","html_url":"https://github.com/NREL/OpenStudio/issues/1590","id":67401601,"number":1590,"title":"Add Model::path() method to support copying files to resources ","user":{"login":"macumber","id":1327850,"avatar_url":"https://avatars.githubusercontent.com/u/1327850?v=3","gravatar_id":"","url":"https://api.github.com/users/macumber","html_url":"https://github.com/macumber","followers_url":"https://api.github.com/users/macumber/followers","following_url":"https://api.github.com/users/macumber/following{/other_user}","gists_url":"https://api.github.com/users/macumber/gists{/gist_id}","starred_url":"https://api.github.com/users/macumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macumber/subscriptions","organizations_url":"https://api.github.com/users/macumber/orgs","repos_url":"https://api.github.com/users/macumber/repos","events_url":"https://api.github.com/users/macumber/events{/privacy}","received_events_url":"https://api.github.com/users/macumber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NREL/OpenStudio/labels/Feature%20Request","name":"Feature Request","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"macumber","id":1327850,"avatar_url":"https://avatars.githubusercontent.com/u/1327850?v=3","gravatar_id":"","url":"https://api.github.com/users/macumber","html_url":"https://github.com/macumber","followers_url":"https://api.github.com/users/macumber/followers","following_url":"https://api.github.com/users/macumber/following{/other_user}","gists_url":"https://api.github.com/users/macumber/gists{/gist_id}","starred_url":"https://api.github.com/users/macumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macumber/subscriptions","organizations_url":"https://api.github.com/users/macumber/orgs","repos_url":"https://api.github.com/users/macumber/repos","events_url":"https://api.github.com/users/macumber/events{/privacy}","received_events_url":"https://api.github.com/users/macumber/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-04-09T16:38:45Z","updated_at":"2015-04-09T17:44:00Z","closed_at":null,"body":"Use case is when calling setWeatherFile in a measure the weather file should be copied into the companion directory for you.  Currently logic to do this lives in the OS app, it should move into model.\r\n\r\nRequires setting this path when the file is loaded and managing the path as file is saved/saved as.  \r\n\r\nWill also require that this is set on model when running measures.  Need to discuss if this path should be to the last OSM on disk or to the original OSM at beginning of workflow, I think we want the latter.\r\n\r\nMight want to add as a Workspace method?\r\n"},"comment":{"url":"https://api.github.com/repos/NREL/OpenStudio/issues/comments/91306245","html_url":"https://github.com/NREL/OpenStudio/issues/1590#issuecomment-91306245","issue_url":"https://api.github.com/repos/NREL/OpenStudio/issues/1590","id":91306245,"user":{"login":"macumber","id":1327850,"avatar_url":"https://avatars.githubusercontent.com/u/1327850?v=3","gravatar_id":"","url":"https://api.github.com/users/macumber","html_url":"https://github.com/macumber","followers_url":"https://api.github.com/users/macumber/followers","following_url":"https://api.github.com/users/macumber/following{/other_user}","gists_url":"https://api.github.com/users/macumber/gists{/gist_id}","starred_url":"https://api.github.com/users/macumber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/macumber/subscriptions","organizations_url":"https://api.github.com/users/macumber/orgs","repos_url":"https://api.github.com/users/macumber/repos","events_url":"https://api.github.com/users/macumber/events{/privacy}","received_events_url":"https://api.github.com/users/macumber/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T17:44:00Z","updated_at":"2015-04-09T17:44:00Z","body":"I am changing my mind on which path should be returned.  If you are running an apply measure now measure that sets the weather file then the weather file should be changed in the companion directory.  If you are running as part of a workflow then the input weather file should not be changed.  I assume this is what @asparke2 's code is doing."}}