If my_dir exists, we load the results regardless of whether or not the output in this directory matches paramset_idx=1.
If the paramset were wrong, this would result in a mismatch of params and analyses which is not aligned with general DataJoint integrity protection principles.
If my_dir was a previous analysis, but the user might mistakenly load instead of trigger a new analysis.
Future
Minor fix: when loading, check that every item specified in the paramset is true of the relevant directory.
Major fix: position 'load vs. trigger' upstream of ProcessingParamset and always trigger insert_new_params when loading existing results.
@kabilar - I'm reviewing outstanding issues to label a subset as 'good-first-issue'. If you can propose a path forward on this, it may qualify for that label.
Current
A user could
my_dir
exists, we load the results regardless of whether or not the output in this directory matchesparamset_idx=1
.my_dir
was a previous analysis, but the user might mistakenly load instead of trigger a new analysis.Future
ProcessingParamset
and always triggerinsert_new_params
when loading existing results.