Skip to content

Commit 05ffd06

Browse files
committed
try to debug netcdf4 failure
1 parent a73e492 commit 05ffd06

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/io/abinit/test_netcdf.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ def test_read_si2(self):
8585

8686
@pytest.mark.skipif(netCDF4 is None, reason="Requires Netcdf4")
8787
def test_read_fe(self):
88+
import h5py
89+
90+
print("\n=== netCDF4 / HDF5 diagnostic info ===")
91+
print(f"netCDF4 version: {netCDF4.__version__}")
92+
print(f"h5py version: {h5py.__version__}")
93+
print(f"HDF5 C library version: {h5py.version.hdf5_version}")
94+
print(f"NumPy version: {np.__version__}")
95+
print(f"Current working directory: {os.getcwd()}")
96+
print(f"Files in cwd: {os.listdir('.')}")
97+
print("======================================\n")
98+
8899
with tarfile.open(f"{TEST_DIR}/Fe_magmoms_collinear_GSR.tar.xz", mode="r:xz") as t:
89100
# TODO: remove attr check after only 3.12+
90101
if hasattr(tarfile, "data_filter"):

0 commit comments

Comments
 (0)