Simplify the getIndexedFiles() function here:
https://github.com/ku-cms/eLink_Instrumentation/blob/main/EyeBERT/template_analysis_windows.py#L56
This function returns a lists of indexed files (with index and file name) that is sorted in decreasing order.
This function is used by the template analysis in order to find the latest csv data file for a specific e-link channel.
However, the function is fairly complicated and depends on the number of underscores in the file name.
One approach would be to remove ".csv" from the file name and the split the resulting string by "_".
Simplify the
getIndexedFiles()function here:https://github.com/ku-cms/eLink_Instrumentation/blob/main/EyeBERT/template_analysis_windows.py#L56
This function returns a lists of indexed files (with index and file name) that is sorted in decreasing order.
This function is used by the template analysis in order to find the latest csv data file for a specific e-link channel.
However, the function is fairly complicated and depends on the number of underscores in the file name.
One approach would be to remove ".csv" from the file name and the split the resulting string by "_".