I noticed an issue when trying to use the select masks feature when using both A and B where the selection for B was being overwritten with the selection for A. I tracked this down to a place where dd_select_masks_a was being passed in where dd_select_masks_b was expected. While doing so, I noticed that the gc module was being called in a function named clear_model_cache but was never being imported so I added an import for the gc module as well.
I noticed an issue when trying to use the select masks feature when using both A and B where the selection for B was being overwritten with the selection for A. I tracked this down to a place where dd_select_masks_a was being passed in where dd_select_masks_b was expected. While doing so, I noticed that the
gc
module was being called in a function namedclear_model_cache
but was never being imported so I added an import for the gc module as well.