ncplot 0.3.9__tar.gz → 0.3.12__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
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: ncplot
3
- Version: 0.3.9
3
+ Version: 0.3.12
4
4
  Summary: Interactive viewing of NetCDF data
5
5
  Home-page: https://github.com/pmlmodelling/ncplot
6
6
  Author: Robert Wilson
@@ -31,6 +31,19 @@ Requires-Dist: jupyter_bokeh
31
31
  Requires-Dist: datashader; python_version <= "3.10"
32
32
  Provides-Extra: complete
33
33
  Requires-Dist: geoviews; extra == "complete"
34
+ Dynamic: author
35
+ Dynamic: author-email
36
+ Dynamic: classifier
37
+ Dynamic: description
38
+ Dynamic: description-content-type
39
+ Dynamic: home-page
40
+ Dynamic: license-file
41
+ Dynamic: maintainer
42
+ Dynamic: project-url
43
+ Dynamic: provides-extra
44
+ Dynamic: requires-dist
45
+ Dynamic: requires-python
46
+ Dynamic: summary
34
47
 
35
48
 
36
49
 
@@ -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)]
@@ -1,6 +1,7 @@
1
1
  LICENSE
2
2
  MANIFEST.in
3
3
  README.md
4
+ pyproject.toml
4
5
  requirements.txt
5
6
  setup.py
6
7
  ncplot/__init__.py
@@ -0,0 +1,5 @@
1
+ # pyproject.toml
2
+ [build-system]
3
+ # XXX: If your project needs other packages to build properly, add them to this list.
4
+ requires = ["setuptools >= 42.0.0"]
5
+ build-backend = "setuptools.build_meta"
@@ -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.12',
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