Skip to content
  • Médéric Boquien's avatar
    Implement a cache for the computation of the optimal grid when merging two... · 3eb0c388
    Médéric Boquien authored
    Implement a cache for the computation of the optimal grid when merging two grids. As the best_grid() function takes numpy arrays as arguments, it makes caching difficult as they are not hashable. To solve the problem we define a helper function to do the memoisation based on the size, min, and max values of each of the input arrays.
    3eb0c388