Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit fa2f312

Browse files
committed
isort and fix test
1 parent ed5e6ca commit fa2f312

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ocf_datapipes/transform/xarray/add_t0idx_and_sample_period_duration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Adds useful t0_idx and sample period attributes"""
2+
import logging
23
from datetime import timedelta
34
from typing import Union
4-
import logging
55

66
import xarray as xr
77
from torchdata.datapipes import functional_datapipe

tests/load/gsp/test_gsp_live.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def test_get_pv_power_from_database(gsp_yields, db_session):
2121
)
2222

2323
assert len(gsp_power) == 3 # 1 hours at 30 mins + 1
24-
assert len(gsp_power.columns) == 1
24+
assert len(gsp_power.columns) == 4
2525
assert gsp_power.columns[0] == 1
2626
assert (
2727
pd.to_datetime(gsp_power.index[0]).isoformat()

0 commit comments

Comments
 (0)