Filename should only use Go run_properties$duration's
Opened this issue · 1 comments
Issue
Naming scheme uses only Go trials to determine both frequency (kHz) and intensity (dB) ranges, but uses all (Go & No-Go) durations (ms).
Affected naming schemes
BBN, Gap, and possibly Tonal (not currently affect but could be)
Example problem file
Blue6_edge_BBN_60dB_1-2000ms_12s_BG_PKN_40dB_20240307-152003_BOX#006.zip
Results in errors:
Note you can ignore the edge_ at the beginning of the file name
Caution: mismatch in provided filename: edge_BBN_60dB_1-2000ms_12s_BG_PKN_40dB
calculated filename by contents: BBN_60dB_0-2000ms_12s_BG_PKN_40dB
ACTION REQUIRED: Was rat run on the wrong file?
ERROR: Filename -- BBN_60dB_0-2000ms_12s_BG_PKN_40dB -- does not match
Assignment -- edge_BBN_60dB_1-2000ms_12s_BG_PKN_40dB
Error results from a 0ms stim which is the No-Go (Type 0).
Solution
Similar to how go_kHz_range range is determined at the start of all the file names, go_ms_range needs to be calculated.
After roll out of fix, I will need to remove files that have incorrectly generated names and reload them.