Ability to list all already performed reconstructions existing in root reconstruction directory
Closed this issue · 1 comments
Currently, there is the possibility to load reconstructions from the google spreadsheet. If the file path of the reconstruction directory was changed in the meanwhile or copies created, without logging them, there will be many "invalid" entries in the loaded list and some existing reconstructions will not show up. The same is true of no spreadsheet is available or accessible.
In the spreadsheet, many reconstruction parameters are saved and can be loaded. Despite a potential loss of information in the list displayed such as reconstruction parameters, the "file search approach" would be handy for a comprehensive overview of all available reconstructions, e.g. by using os.walk and finding all folders with the appropriate prefix (e.g. "recon"). This way having many file explorer windows opened could be circumvented while remaining overview and being able to complete reconstructions.
Currently, in AlRecon the function UpdatePandasTable is used to provide a suited data container with the information from the spreadsheet. -> A possibility could be to try to match existing reconstructions by the unique dataset name. If there have been multiple reconstructions or non logged user changes, this might be not of advantage.
I think it would be best to keep the table structure (headers) and fill only information available from the found directories, perhaps upon reconstruction an additional file for lookup purposes could be saved what increases complexity though.
This appears to work now. Started to refactor the functions into general_tools.py.