{"action":"created","issue":{"url":"https://api.github.com/repos/PecanProject/pecan/issues/590","labels_url":"https://api.github.com/repos/PecanProject/pecan/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/PecanProject/pecan/issues/590/comments","events_url":"https://api.github.com/repos/PecanProject/pecan/issues/590/events","html_url":"https://github.com/PecanProject/pecan/issues/590","id":97940755,"number":590,"title":"Missing file causes PEcAb crash when running a PFT with priors that have no observations","user":{"login":"serbinsh","id":3067369,"avatar_url":"https://avatars.githubusercontent.com/u/3067369?v=3","gravatar_id":"","url":"https://api.github.com/users/serbinsh","html_url":"https://github.com/serbinsh","followers_url":"https://api.github.com/users/serbinsh/followers","following_url":"https://api.github.com/users/serbinsh/following{/other_user}","gists_url":"https://api.github.com/users/serbinsh/gists{/gist_id}","starred_url":"https://api.github.com/users/serbinsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serbinsh/subscriptions","organizations_url":"https://api.github.com/users/serbinsh/orgs","repos_url":"https://api.github.com/users/serbinsh/repos","events_url":"https://api.github.com/users/serbinsh/events{/privacy}","received_events_url":"https://api.github.com/users/serbinsh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"serbinsh","id":3067369,"avatar_url":"https://avatars.githubusercontent.com/u/3067369?v=3","gravatar_id":"","url":"https://api.github.com/users/serbinsh","html_url":"https://github.com/serbinsh","followers_url":"https://api.github.com/users/serbinsh/followers","following_url":"https://api.github.com/users/serbinsh/following{/other_user}","gists_url":"https://api.github.com/users/serbinsh/gists{/gist_id}","starred_url":"https://api.github.com/users/serbinsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serbinsh/subscriptions","organizations_url":"https://api.github.com/users/serbinsh/orgs","repos_url":"https://api.github.com/users/serbinsh/repos","events_url":"https://api.github.com/users/serbinsh/events{/privacy}","received_events_url":"https://api.github.com/users/serbinsh/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-29T13:51:58Z","updated_at":"2015-08-06T14:59:12Z","closed_at":null,"body":"@Viskari and I noticed a bug on his version of PEcAn yesterday. This may be a special case but we found an issue where PEcAn will crash mid-run if you are running with a PFT that has priors for traits that have no observations. I still need to check that we were using the latest build of PEcAn.\r\n\r\nHere is the error message:\r\n\r\n```\r\n2015-07-28 13:26:52 INFO   [#2: run.write.configs] :\r\n   PFT Optics.Temperate_Early_Hardwood has MCMC samples for: clumping\r\n2015-07-28 13:26:52 INFO   [#2: run.write.configs] :\r\n   PFT Optics.Temperate_Early_Hardwood will use prior distributions for:\r\n   leaf_trans_vis leaf_trans_nir leaf_reflect_vis leaf_reflect_nir\r\n2015-07-28 13:26:52 INFO   [#2: run.write.configs] :\r\n   using 7004 samples per trait\r\nWarning in readChar(con, 5L, useBytes = TRUE) :\r\n  cannot open compressed file '/data/tviskari/pecan/pft/Optics.Temperate_Mid_Hardwood/trait.mcmc.Rdata', probable reason 'No such file or directory'\r\nError in readChar(con, 5L, useBytes = TRUE) : cannot open the connection\r\nCalls: run.write.configs -> load -> readChar\r\n[1] \"----------------------------------------------------------------------\"\r\n[1] \"DONE\"\r\n[1] \"----------------------------------------------------------------------\"\r\n[tviskari@modex tviskari]$ dir /data/tviskari/pecan/pft/Optics.Temperate_Early_Hardwood/\r\nclumping.model.bug            ma.summaryplots.clumping.pdf  post.distns.Rdata             prior.distns.csv              species.csv                   trait.data.Rdata\r\nmadata.Rdata                  meta-analysis.log             posteriors.pdf                prior.distns.Rdata            trait.data.csv                trait.mcmc.Rdata\r\n[tviskari@modex tviskari]$ dir /data/tviskari/pecan/pft/Optics.Temperate_Mid_Hardwood/\r\nprior.distns.csv    prior.distns.Rdata  species.csv         trait.data.csv      trait.data.Rdata\r\n```\r\n\r\nI feel like we had this issue before, a few years back.  If you have at least one trait-prior combo that has some observations for a MA then you avoid this error."},"comment":{"url":"https://api.github.com/repos/PecanProject/pecan/issues/comments/128404058","html_url":"https://github.com/PecanProject/pecan/issues/590#issuecomment-128404058","issue_url":"https://api.github.com/repos/PecanProject/pecan/issues/590","id":128404058,"user":{"login":"serbinsh","id":3067369,"avatar_url":"https://avatars.githubusercontent.com/u/3067369?v=3","gravatar_id":"","url":"https://api.github.com/users/serbinsh","html_url":"https://github.com/serbinsh","followers_url":"https://api.github.com/users/serbinsh/followers","following_url":"https://api.github.com/users/serbinsh/following{/other_user}","gists_url":"https://api.github.com/users/serbinsh/gists{/gist_id}","starred_url":"https://api.github.com/users/serbinsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serbinsh/subscriptions","organizations_url":"https://api.github.com/users/serbinsh/orgs","repos_url":"https://api.github.com/users/serbinsh/repos","events_url":"https://api.github.com/users/serbinsh/events{/privacy}","received_events_url":"https://api.github.com/users/serbinsh/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T14:59:12Z","updated_at":"2015-08-06T14:59:12Z","body":"@dlebauer or @ryankelly-uiuc Do you see any easy fix for this? E.g. not requiring the trait.mcmc or a special case if that doesn't exist since that will be the case without obs\r\n\r\n@Viskari "}}