Skip to content

Commit

Permalink
update dependencies and fix import for tomllib; adjust logging for da…
Browse files Browse the repository at this point in the history
…taset dimensions
  • Loading branch information
MAYANK12SHARMA committed Feb 28, 2025
1 parent 6cedbda commit 83279dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dependencies = [
"h5netcdf",
"h5py",
"pvlive-api",
"pytest-mock",
]

[project.optional-dependencies]
Expand All @@ -55,7 +56,6 @@ dev = [
"twine",
"pytest",
"pytest-cov",
"pytest-mock",
"tomli",
]

Expand Down
2 changes: 1 addition & 1 deletion src/open_data_pvnet/utils/data_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def merge_datasets(datasets: List[xr.Dataset]) -> xr.Dataset:
ds = xr.merge(datasets, compat="override")
logger.info("Dataset info:")
logger.info(f"Variables: {list(ds.variables)}")
logger.info(f"Dimensions: {dict(ds.dims)}")
logger.info(f"Dimensions: {dict(ds.sizes)}")
logger.info(f"Coordinates: {list(ds.coords)}")
return ds

Expand Down
4 changes: 2 additions & 2 deletions tests/test_metadata.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import tomli
import tomllib
import open_data_pvnet


Expand All @@ -8,7 +8,7 @@ def test_version_consistency():
"""
# Read version from pyproject.toml
with open("pyproject.toml", "rb") as f:
pyproject_data = tomli.load(f)
pyproject_data = tomllib.load(f)
pyproject_version = pyproject_data["project"]["version"]

# Read version from the __init__.py file
Expand Down

0 comments on commit 83279dc

Please sign in to comment.