Skip to content

Commit 7449de9

Browse files
committed
'CI:test'
1 parent 83172d0 commit 7449de9

File tree

6 files changed

+205
-217
lines changed

6 files changed

+205
-217
lines changed

.coverage

0 Bytes
Binary file not shown.

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
# Build native extensions in CI; keep a single stable interpreter to avoid
19-
# old-Python wheels disappearing (e.g. py38 + latest h5py -> source build needing HDF5 headers).
20-
python-version: ["3.9"]
18+
python-version: ["3.8", "3.9"]
2119
steps:
2220
- name: Checkout
2321
uses: actions/checkout@v4
@@ -35,7 +33,7 @@ jobs:
3533
# Build requirements + runtime deps (setup.py imports numpy/scipy/pybind11/Cython)
3634
# Pin numpy<2 for compatibility with the bundled cython/pybind extensions.
3735
python -m pip install "numpy<2" "scipy<2" "Cython<3" pybind11
38-
python -m pip install prettytable h5py xarray netcdf4 h5netcdf
36+
python -m pip install prettytable xarray netcdf4
3937
4038
- name: Build native extensions (in-place)
4139
run: |

UQPyL/util/verbose.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import os
22
import re
33
import time
4-
import h5py
54
import math
65
import xarray as xr
76
import functools
@@ -502,13 +501,16 @@ def checkDir(workDir):
502501

503502

504503
def save_dict_to_hdf5(h5file, d):
505-
506-
for key, value in d.items():
507-
if isinstance(value, dict):
508-
group = h5file.create_group(str(key))
509-
save_dict_to_hdf5(group, value)
510-
else:
511-
h5file.create_dataset(key, data = value)
504+
"""
505+
Deprecated: HDF5 support has been removed from UQPyL.
506+
507+
We keep this symbol for backward compatibility, but it will always raise.
508+
Use NetCDF (`xarray.Dataset.to_netcdf`) instead.
509+
"""
510+
raise NotImplementedError(
511+
"HDF5 output has been removed from UQPyL. "
512+
"Please use NetCDF (`xarray.Dataset.to_netcdf`) instead."
513+
)
512514

513515

514516
# def save_dict_to_nc(ncfile, d):

0 commit comments

Comments
 (0)