{"action":"created","issue":{"url":"https://api.github.com/repos/gilestrolab/rethomics/issues/39","labels_url":"https://api.github.com/repos/gilestrolab/rethomics/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/gilestrolab/rethomics/issues/39/comments","events_url":"https://api.github.com/repos/gilestrolab/rethomics/issues/39/events","html_url":"https://github.com/gilestrolab/rethomics/issues/39","id":123727336,"number":39,"title":"Error with DAM data","user":{"login":"florenciafernandez","id":16418795,"avatar_url":"https://avatars.githubusercontent.com/u/16418795?v=3","gravatar_id":"","url":"https://api.github.com/users/florenciafernandez","html_url":"https://github.com/florenciafernandez","followers_url":"https://api.github.com/users/florenciafernandez/followers","following_url":"https://api.github.com/users/florenciafernandez/following{/other_user}","gists_url":"https://api.github.com/users/florenciafernandez/gists{/gist_id}","starred_url":"https://api.github.com/users/florenciafernandez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/florenciafernandez/subscriptions","organizations_url":"https://api.github.com/users/florenciafernandez/orgs","repos_url":"https://api.github.com/users/florenciafernandez/repos","events_url":"https://api.github.com/users/florenciafernandez/events{/privacy}","received_events_url":"https://api.github.com/users/florenciafernandez/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T21:44:57Z","updated_at":"2015-12-23T23:00:10Z","closed_at":null,"body":"Hi! I'm Florencia, from Argentina, and I'm writing here because I've been having some issues analyzing my data with rethomics. I collect my data from Trikinetics monitors and when I try to run this command (dt <- loadDailyDAM2Data(DAILY_DATA_DIR, query,reference_hour = 09.0, FUN=sleepDAMAnnotation), I keep getting the following error:\r\n\r\nError in FUN(X[[i]], ...) : \r\n  There is apparently no data in this range of dates\r\n\r\nDo you have any idea of what could be happening here? I also tested the script with some old data that I have and it worked perfectly (please bear in mind that I'm not an expert coder)"},"comment":{"url":"https://api.github.com/repos/gilestrolab/rethomics/issues/comments/167005667","html_url":"https://github.com/gilestrolab/rethomics/issues/39#issuecomment-167005667","issue_url":"https://api.github.com/repos/gilestrolab/rethomics/issues/39","id":167005667,"user":{"login":"qgeissmann","id":1399684,"avatar_url":"https://avatars.githubusercontent.com/u/1399684?v=3","gravatar_id":"","url":"https://api.github.com/users/qgeissmann","html_url":"https://github.com/qgeissmann","followers_url":"https://api.github.com/users/qgeissmann/followers","following_url":"https://api.github.com/users/qgeissmann/following{/other_user}","gists_url":"https://api.github.com/users/qgeissmann/gists{/gist_id}","starred_url":"https://api.github.com/users/qgeissmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qgeissmann/subscriptions","organizations_url":"https://api.github.com/users/qgeissmann/orgs","repos_url":"https://api.github.com/users/qgeissmann/repos","events_url":"https://api.github.com/users/qgeissmann/events{/privacy}","received_events_url":"https://api.github.com/users/qgeissmann/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T23:00:10Z","updated_at":"2015-12-23T23:00:10Z","body":"hey there,\r\nLooks like an issue with your query.\r\nSpecifically, one of the date range does not seem to contain any data (I would double check the dates).\r\nAny chance you can attach your query (drag & drop the file in a message)?\r\nwhat you can do to help debugging, is to make the query simpler.\r\nfor instance, you can test the first two rows:\r\n\r\n```\r\ndt <- loadDailyDAM2Data(DAILY_DATA_DIR, query[1:2] ,reference_hour = 09.0, FUN=sleepDAMAnnotation\r\n```\r\nthen the first three with `query[1:3]` and so on until it fails. this way, you can know speciffically which row in the query is giving an error. \r\ngood luck!"}}