Skip to content

Simplify the getIndexedFiles() function #50

Description

@caleb-james-smith

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 "_".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions