Problem with numbering thumbnail results files
pipeliner.results_display_objects.get_next_resultsfile_name
has some over complex code that is not necessary.
standard naming convention: .results_display000_montage.json
is searched for with .results_display*_montage.json
the search term is split at *
into two parts called pre
and suf
(.results_display
and _montage.json
respectively here)
The number is then determined using:
int(os.path.splitext(os.path.basename(x))[0].replace(pre, "").split("_")[0][:3])
The number determination is silly, it should be simplified to:
int(os.path.basename(x).replace(pre, "")[:3])