-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graceful handling and logging of get_trackdata errors #245
Comments
Related to this. I am using 2.2.0 and it is a bit frustrating to get this error message after a long extraction:
(Generating the RMS track went fine though. The user needs some information on what to do in this situation. I will try to get some information from the code, if possible, on what "18307" refers to (does not seem to be segment number), but a more graceful and informative error (message) I think is needed here. |
Actually, I am now working from the hypothesis that my underlying issue is actually in rmsana somewhere. I am working from data I did not collect myself here so I am just without any information right now on where and why the processing fails. I guess there could be something odd with one or two wave files somewhere, but right now I cannot tell where. My best hypothesis right now is that rmsana returns something odd for a couple of my segments, and is very quiet about it. |
I'll def. look into improving the error messages. Writing out a log table file containing the bad segments might be a good way to go. Regarding the create_emuRdemoData("~/Desktop/")
db = load_emuDB("~/Desktop/emuR_demoData/ae_emuDB/")
fps = list_files(db, fileExtension = "fms")$absolute_file_path
for(fp in fps){
ado = wrassp::read.AsspDataObj(fp)
if(ncol(ado$fm) != 4){
print("following file is bad: ", fp)
}
}
|
Could you maybe send me a mini emuDB with a single bundle that generates the error? That would help me a lot... |
Hi Raphael, Sorry for the delay. I missed your earlier question. I am trying to find the files that do not work, but it is puzzling and even the straightforward test code you supplied above fails in a strange way. I am on it and will get back to you when I get some idea on what happens here. |
It would be nice to be able get data that can be used to fix a problem more easily than what is currently possible.
Using emuR 2.2.0 (and the previous version I had installed too) I get this error at the end of a rather large batch:
There are very likely some strange segments in there causing the issue, but it would be nice if I could supply a name of a tibble where I would like segments that raised warnings to be stored so I could review them. Now I can only get the information using warnings(), and in this format then:
If the function instead created a segment list, in the current environment or as a file (but not return it of course) then the work of fixing issues would be much simplified.
The text was updated successfully, but these errors were encountered: