You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is likely a bug for cf-plot or possibly cf-python, but since I cannot tell and it manifests itself in this tutorial I'm putting the issue here. If you want me to do something else, please let me know.
# Make a contour plot of the data
cfp.con(t_500)
Fails. The kernel dies.
This bit of code illustrates the problem directly:
import cf
import cfplot as cfp
f1 = cf.read('ncas_data/data1.nc')
temp = f1.select('air_temperature')[0]
print(temp)
t_500 = temp.subspace(pressure=500)
print(t_500)
cfp.gopen(file='airt.png')
cfp.con(t_500)
cfp.gclose()
Thanks Roland - I get the same (both in a notebook and normal on the command line). It seems to be perhaps be a problem with cf-plot ... @ajheaps, could you perhaps try this, too?
Hi Roland,
A segfault is quite a severe Python reaction! I think there was a change to the regriding esmpy package not too long ago and somehow when making a map plot it causes this failure. I think if esmpy is not installed or you are not making a map plot then all is well. This is quite strange as there is no regrinding going on here before making the map plot as far as I am aware.
I will have a good look at this early next week but in the meantime you could try typing the following on the command line before starting Python:
unset ESMFMKFILE
and that might help.
If not you could try uninstalling esmpy and see if that fixes it.
If that doesn't work then reinstall Python but leave out esmpy from the install process.
This is likely a bug for cf-plot or possibly cf-python, but since I cannot tell and it manifests itself in this tutorial I'm putting the issue here. If you want me to do something else, please let me know.
Fails. The kernel dies.
This bit of code illustrates the problem directly:
The environment listing is attached.
env.txt
The text was updated successfully, but these errors were encountered: