-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UKCP projection fails to plot due to previous AttributeError
#59
Labels
Comments
OK for some reason, in interactive Python that line works fine, but when run as part of the test suite it fails with the above, so there is some |
Update: I can recreate this locally, with the following calls from the example (note the previous >>> f = cf.read("cfplot_data/ukcp_rcm_test.nc")[0]
>>> cfp.con(f, lines=False)
>>> cfp.setvars(grid_x_spacing=1, grid_y_spacing=1)
>>> cfp.con(f, lines=False)
>>> cfp.mapset(proj="UKCP", resolution="50m")
>>> cfp.con(f, lines=False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/slb93/git-repos/cf-plot/cfplot/cfplot.py", line 4037, in con
_plot_map_axes(
File "/home/slb93/git-repos/cf-plot/cfplot/cfplot.py", line 2982, in _plot_map_axes
if plotvars.proj == "UKCP" and plotvars.grid:
^^^^^^^^^^^^^
AttributeError: 'pvars' object has no attribute 'grid' |
sadielbartholomew
added a commit
to sadielbartholomew/cf-plot
that referenced
this issue
Aug 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As evidenced by the Example 31 of the new regression test suite:
from the minimal reproducer code:
Looks like a very quick fix to me, but I will wait to get the rest of the test issues diagnosed before putting in the fixes.
The text was updated successfully, but these errors were encountered: