-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
When loading results using:
case = Case(study, options=options, name=name)
case.load()the following error may occur:
Found matching options hash 1234abc, but incorrect study commit hash
needs: d96bx63, has: abcd12e
This error indicates that the study code has changed since the results were generated. However, in many cases, the changes are unrelated to the loaded results (e.g., modifications to other parts of the codebase). Currently, the process fails even if the results are still valid for the given options hash.
A workaround exists:
project_repo.copy_data_to_cache(results_branch)But this requires knowing the results_branch, which is often inconvenient or impractical.
Add an option (e.g., allow_semi_correct_hits=True) to case.load() to return results even if the study commit hash does not match, as long as the options hash matches. This would allow users to proceed with potentially valid results, while still warning them about the mismatch.
Metadata
Metadata
Assignees
Labels
No labels