{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaInv/jInv.jl/issues/10","repository_url":"https://api.github.com/repos/JuliaInv/jInv.jl","labels_url":"https://api.github.com/repos/JuliaInv/jInv.jl/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/JuliaInv/jInv.jl/issues/10/comments","events_url":"https://api.github.com/repos/JuliaInv/jInv.jl/issues/10/events","html_url":"https://github.com/JuliaInv/jInv.jl/issues/10","id":158468644,"number":10,"title":"Allow observed data and data weights to be input as arrays of remote references.","user":{"login":"Pbellive","id":6206759,"avatar_url":"https://avatars.githubusercontent.com/u/6206759?v=3","gravatar_id":"","url":"https://api.github.com/users/Pbellive","html_url":"https://github.com/Pbellive","followers_url":"https://api.github.com/users/Pbellive/followers","following_url":"https://api.github.com/users/Pbellive/following{/other_user}","gists_url":"https://api.github.com/users/Pbellive/gists{/gist_id}","starred_url":"https://api.github.com/users/Pbellive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pbellive/subscriptions","organizations_url":"https://api.github.com/users/Pbellive/orgs","repos_url":"https://api.github.com/users/Pbellive/repos","events_url":"https://api.github.com/users/Pbellive/events{/privacy}","received_events_url":"https://api.github.com/users/Pbellive/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-03T22:47:24Z","updated_at":"2016-06-04T22:22:52Z","closed_at":"2016-06-04T22:22:52Z","body":"When passing multiple forward problems to `getMisfitParam` as an array of remoteRefs it makes sense to me to be able to also pass the observed data and data weights for each problem as arrays of remoteRefs. Currently when I try to do that the data and weight remoteRefs are never fetched on the remote workers and the inversion crashes when trying to compute the misfit:\r\n```\r\nERROR: LoadError: MethodError: `SSDFun` has no method matching SSDFun(::Array{Float64,3}, ::RemoteRef{Channel{Any}}, ::RemoteRef{Channel{Any}})\r\n```\r\nA satisfactory solution for me has been to add the two lines\r\n```\r\nWd              = fetch(Wd);\r\ndobs            = fetch(dobs);\r\n```\r\nto the relevant method of `getMisfitParam` (after line 118 of `getMisfitParam.jl`). If this seems like an acceptable general solution let me know and I'll make a pull request.\r\n\r\nThanks, Patrick"},"comment":{"url":"https://api.github.com/repos/JuliaInv/jInv.jl/issues/comments/223781449","html_url":"https://github.com/JuliaInv/jInv.jl/issues/10#issuecomment-223781449","issue_url":"https://api.github.com/repos/JuliaInv/jInv.jl/issues/10","id":223781449,"user":{"login":"Pbellive","id":6206759,"avatar_url":"https://avatars.githubusercontent.com/u/6206759?v=3","gravatar_id":"","url":"https://api.github.com/users/Pbellive","html_url":"https://github.com/Pbellive","followers_url":"https://api.github.com/users/Pbellive/followers","following_url":"https://api.github.com/users/Pbellive/following{/other_user}","gists_url":"https://api.github.com/users/Pbellive/gists{/gist_id}","starred_url":"https://api.github.com/users/Pbellive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pbellive/subscriptions","organizations_url":"https://api.github.com/users/Pbellive/orgs","repos_url":"https://api.github.com/users/Pbellive/repos","events_url":"https://api.github.com/users/Pbellive/events{/privacy}","received_events_url":"https://api.github.com/users/Pbellive/received_events","type":"User","site_admin":false},"created_at":"2016-06-04T22:22:52Z","updated_at":"2016-06-04T22:22:52Z","body":"Yes, I checked and tested that fetch works as a no-op for arrays. I'll make a pull request. \r\n\r\nPatrick"}}
{"actor":{"display_login":"Pbellive"}}