ebas-plot 0.1.1__tar.gz → 0.1.2__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.
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/PKG-INFO +2 -2
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.egg-info/PKG-INFO +2 -2
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.py +5 -3
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/pyproject.toml +1 -1
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/LICENSE +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/README.md +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.egg-info/SOURCES.txt +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.egg-info/dependency_links.txt +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.egg-info/entry_points.txt +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.egg-info/requires.txt +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/ebas_plot.egg-info/top_level.txt +0 -0
- {ebas_plot-0.1.1 → ebas_plot-0.1.2}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ebas-plot
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Plotting utilities for EBAS datasets
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Plotting utilities for EBAS netCDF datasets.
|
|
5
5
|
Author-email: Lise Eder Murberg <lemu@nilu.no>, Marthe Brevig <mbre@nilu.no>, Jonathan Elias Holme <jhol@nilu.no>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
7
7
|
Project-URL: Homepage, https://git.nilu.no/ebas/ebas-web/ebas-web-plotting
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ebas-plot
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Plotting utilities for EBAS datasets
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Plotting utilities for EBAS netCDF datasets.
|
|
5
5
|
Author-email: Lise Eder Murberg <lemu@nilu.no>, Marthe Brevig <mbre@nilu.no>, Jonathan Elias Holme <jhol@nilu.no>
|
|
6
6
|
License-Expression: AGPL-3.0-or-later
|
|
7
7
|
Project-URL: Homepage, https://git.nilu.no/ebas/ebas-web/ebas-web-plotting
|
|
@@ -7,7 +7,7 @@ import requests
|
|
|
7
7
|
from netCDF4 import num2date
|
|
8
8
|
import pandas as pd
|
|
9
9
|
|
|
10
|
-
__version__ = "0.1.
|
|
10
|
+
__version__ = "0.1.2"
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
class DatasetAccessError(Exception):
|
|
@@ -99,10 +99,12 @@ def validate_dataset(path: str) -> xr.Dataset | None:
|
|
|
99
99
|
errors.append("Missing required 'time' dimension/coordinate.")
|
|
100
100
|
|
|
101
101
|
plot_vars = _plot_vars(ds)
|
|
102
|
-
|
|
102
|
+
pnsd_var = _pnsd_var(ds)
|
|
103
|
+
valid_vars = plot_vars or ([pnsd_var] if pnsd_var is not None else [])
|
|
104
|
+
if not valid_vars:
|
|
103
105
|
errors.append("No plottable variables found — need at least one 'v_*' float variable with a 'time' dimension.")
|
|
104
106
|
else:
|
|
105
|
-
for name in
|
|
107
|
+
for name in valid_vars:
|
|
106
108
|
if not ds[name].attrs.get("ebas_unit") and not ds[name].attrs.get("units"):
|
|
107
109
|
warnings.append(f"'{name}' has no 'ebas_unit' or 'units' attribute — unit label will be blank.")
|
|
108
110
|
|
|
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "ebas-plot"
|
|
7
7
|
dynamic = ["version"]
|
|
8
|
-
description = "Plotting utilities for EBAS datasets
|
|
8
|
+
description = "Plotting utilities for EBAS netCDF datasets."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
license = "AGPL-3.0-or-later"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|