File can't be processed due to list of TDW
Opened this issue · 2 comments
This has only happened in 1 of the thousands of files and is not an expected or desired stim arrangement. Therefore, I don't see the need to fix it at this time
Issue
File has a list of "Nose Out" instead of a single value. This is an unexpected file setting and should not typically happen.
No fix expected as the data would probably be thrown out as I would rule the day invalid as this should not vary.
Reproduce
Attempt to load file and get error:
Error in unique(run_properties$stim_encoding_table["Nose Out TL (s)"]) %>% :
'list' object cannot be coerced to type 'double'
Teal1_4-32kHz_30-90dB_50ms_8s_TR200ms_NGW2.5s_20220201-144644_BOX#003.mat.zip
Possible Fix
To fix, an extra check would need to be added to main when this is forced into a double. If it is a list of >1 then set it to NA_int otherwise force it to a double.
However, this could/will have downstream effects since it should result in odd naming. Hopefully the name would become NAs, but that would be odd. Ideally if it was NA we would also need to add a check at naming to handle this but I have no idea what I would name it and the data would be lost at that point if the earlier fix was implemented.
This has only happened in 1 of the thousands of files and is not an expected or desired stim arrangement. Therefore, I don't see the need to fix it at this time
This appears to be a repeated issue for this rat, so may consider fixing in the future. Very low priority.