Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Test Failures: Dependency Updates and Fixture Adjustments #67

Merged
merged 1 commit into from
Feb 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading