Find moved images: match path instead of hashes?

Berthold Stoeger bstoeger at mail.tuwien.ac.at
Sat Jun 9 10:03:55 PDT 2018


On Samstag, 9. Juni 2018 13:53:31 CEST Berthold Stoeger wrote:

> And certainly, the user should be presented
> the list of new associations, before actually applying them.

I implemented a quick-and-dirty mockup of such an interface in PR#1349.

> To emulate the old behavior, *all* pictures that we ever
> encountered are matched. If a log is opened, all pictures in the log are
> remembered in the canonical_filename->local_filename associative array. I
> wonder if it would not be more sensible to match only the pictures of the
> currently opened log

Indeed, while testing the above changes, it occurred to me that the current 
behavior is very annoying. For testing, I have dive logs with images imported 
from old and new image-locations. I couldn't associate the new files to the 
log with the old images, because the new images always gave better (perfect) 
hits.

Solution 1: Always associate matching files, even if there are images that fit 
better. I.e. for every image try to find the best hit.
Solution 2: Only consider images from the current log or even only of selected 
dives.

The second solution seems more sensible to me.

Berthold




More information about the subsurface mailing list