ncplot 0.3.9__tar.gz → 0.3.10__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ncplot
3
- Version: 0.3.9
3
+ Version: 0.3.10
4
4
  Summary: Interactive viewing of NetCDF data
5
5
  Home-page: https://github.com/pmlmodelling/ncplot
6
6
  Author: Robert Wilson
@@ -247,12 +247,11 @@ def view(x, vars=None, autoscale=True, out=None, **kwargs):
247
247
 
248
248
  coord_list = list(ds.coords)
249
249
 
250
- #if vars is None:
251
- #vars = [x for x in list(ds.data_vars) if x not in coord_list]
252
-
253
-
254
250
 
255
251
  for cc in coord_list:
252
+ new_coords = list(ds.coords)
253
+ if cc not in new_coords:
254
+ continue
256
255
  if len(ds[cc].values.ravel()) <= 1:
257
256
  if cc in list(ds.dims):
258
257
  ds = ds.squeeze(cc, drop=True)
@@ -482,11 +481,15 @@ def view(x, vars=None, autoscale=True, out=None, **kwargs):
482
481
 
483
482
  coord_list = list(ds.coords)
484
483
 
484
+
485
485
  for cc in coord_list:
486
+ new_coords = list(ds.coords)
487
+ if cc not in new_coords:
488
+ continue
486
489
  if len(ds[cc].values.ravel()) <= 1:
487
490
  if cc in list(ds.dims):
488
491
  ds = ds.squeeze(cc, drop=True)
489
-
492
+
490
493
  coord_list = list(ds.coords)
491
494
 
492
495
  coord_list = [x for x in coord_list if x in list(ds.dims)]
@@ -37,7 +37,7 @@ extras_require: dict() = {
37
37
  extras_require["complete"] = ["geoviews"]
38
38
 
39
39
  setup(name='ncplot',
40
- version='0.3.9',
40
+ version='0.3.10',
41
41
  description=DESCRIPTION,
42
42
  long_description=long_description,
43
43
  long_description_content_type='text/markdown',
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes