Skip to content

Commit

Permalink
Cleanup (pep, variable accessor, notebook fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwilcox committed Apr 2, 2018
1 parent 381e06f commit 22e78c5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion legends.ipynb
Expand Up @@ -502,7 +502,7 @@
"if p['showvalues'] is False:\n",
" levs_labels = [ '' for x in range(levs.size) ]\n",
"\n",
"x, y = np.meshgrid(np.arange(1), np.arange(1))\n",
"x, y = np.meshgrid(np.ones(2), np.ones(2))\n",
"cs = ax.contourf(x, y, x, levels=levs, norm=CNorm, cmap=get_cmap(p['colormap']), extend='max')\n",
"\n",
"proxy = [plt.Rectangle((0, 0), 0, 0, fc=pc.get_facecolor()[0]) for pc in cs.collections]\n",
Expand Down
2 changes: 1 addition & 1 deletion wms/models/datasets/ugrid.py
Expand Up @@ -125,7 +125,7 @@ def update_cache(self, force=False):
# support cases where there may be more than one variable with standard_name='time' in a dataset
for time_var in time_vars:
try:
time_var_obj = cached_nc.createVariable(time_var._name,
time_var_obj = cached_nc.createVariable(time_var.name,
time_var.dtype,
time_var.dimensions)
except RuntimeError:
Expand Down
1 change: 0 additions & 1 deletion wms/views.py
Expand Up @@ -3,7 +3,6 @@
from collections import OrderedDict

from django.conf import settings
from django.template import RequestContext
from django.http import HttpResponse
from django.contrib.auth import authenticate, login, logout
from django.template.response import TemplateResponse
Expand Down

0 comments on commit 22e78c5

Please sign in to comment.