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

Commit 0e7e9d0

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a0688dc commit 0e7e9d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ocf_datapipes/load/pv.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ def __iter__(self):
4343
pass
4444

4545

46-
def load_everything_into_ram(
47-
pv_power_filename, pv_metadata_filename
48-
) -> xr.DataArray:
46+
def load_everything_into_ram(pv_power_filename, pv_metadata_filename) -> xr.DataArray:
4947
"""Open AND load PV data into RAM."""
5048
# Load pd.DataFrame of power and pd.Series of capacities:
5149
pv_power_watts, pv_capacity_wp, pv_system_row_number = _load_pv_power_watts_and_capacity_wp(

ocf_datapipes/transform/numpy/add_topographic_data.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ def __iter__(self) -> NumpyBatch:
4040
hrvsatellite_surface_height = _get_surface_height_for_satellite(
4141
surface_height=topo, satellite=hrvsatellite_data_array
4242
)
43-
np_batch[BatchKey.hrvsatellite_surface_height] = np.nan_to_num(hrvsatellite_surface_height, nan=0.0)
43+
np_batch[BatchKey.hrvsatellite_surface_height] = np.nan_to_num(
44+
hrvsatellite_surface_height, nan=0.0
45+
)
4446
yield np_batch
4547

4648

0 commit comments

Comments
 (0)