Closed msulprizio closed 1 year ago
Thanks @msulprizio. According to StackOverflow, this should be the proper import order:
from matplotlib import use as mpl_use
mpl_use("TkAgg") # X11 backend for plt.show()
import matplotlib.pyplot as plt
Apparently you need to apply the X11 backend immediately after importing matplotlib and before importing matplotlib.pyplot.
A hotfix has been pushed in commit 8f7528459f3cb751438dea13e0d42064aff84a1c to the dev
branch.
We can close this issue as #275 has since been merged into version 1.4.0.
Describe the bug
When attempting to regrid restart files using the latest dev branch of GCPy (at commit 30a13f6) and the regridding fixes from PR #266, I'm getting the following error:
I updated to @yantosca's gcpy environment which had tk installed, but still get the same error.
To Reproduce
I call the file_regrid routine from a bash script: