When the number of derangements increases, the gridsearch in source space will stop in the middle (not the first function) if we are running on multiple functions. The should not be the case if we delete the variables related to the function after completing the gridsearch on it. Not difficult to solve, but may need to increase the number of derangements to check
It's not clear why Kiara is running out of memory after testing more than one function – all of the variables inside the gridsearch should have been deleted when the gridsearch returns the results.
When the number of derangements increases, the gridsearch in source space will stop in the middle (not the first function) if we are running on multiple functions. The should not be the case if we delete the variables related to the function after completing the gridsearch on it. Not difficult to solve, but may need to increase the number of derangements to check