Instead of having an if statement for the reuse_weights, do this: https://github.com/pangeo-data/xESMF/pull/234#issuecomment-1409401017