Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 16, 2023
1 parent d08eb49 commit cd77855
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion ocf_datapipes/load/nwp/nwp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
from torchdata.datapipes import functional_datapipe
from torchdata.datapipes.iter import IterDataPipe

from ocf_datapipes.load.nwp.providers.ecmwf import open_ifs
from ocf_datapipes.load.nwp.providers.icon import open_icon_eu, open_icon_global
from ocf_datapipes.load.nwp.providers.ukv import open_ukv
from ocf_datapipes.load.nwp.providers.ecmwf import open_ifs

_log = logging.getLogger(__name__)

Expand Down
36 changes: 18 additions & 18 deletions ocf_datapipes/training/pseudo_irradience.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _normalize_by_pvlib(pv_system):
)
# Guess want fraction of total irradiance on panel, to get fraction to do with capacity
fraction_clear_sky = total_irradiance["poa_global"] / (
clear_sky["dni"] + clear_sky["dhi"] + clear_sky["ghi"]
clear_sky["dni"] + clear_sky["dhi"] + clear_sky["ghi"]
)
print(fraction_clear_sky)
pv_system /= pv_system.capacity_watt_power
Expand Down Expand Up @@ -380,23 +380,23 @@ def _get_id_from_location(x):


def pseudo_irradiance_datapipe(
configuration_filename: Union[Path, str],
use_sun: bool = True,
use_nwp: bool = True,
use_sat: bool = True,
use_hrv: bool = True,
use_pv: bool = True,
use_topo: bool = True,
use_future: bool = False,
size: int = 256,
size_meters: int = 256_000,
use_meters: bool = False,
start_time: datetime.datetime = datetime.datetime(2014, 1, 1),
end_time: datetime.datetime = datetime.datetime(2023, 1, 1),
batch_size: int = 1,
normalize_by_pvlib: bool = True,
one_d: bool = False,
is_test: bool = False,
configuration_filename: Union[Path, str],
use_sun: bool = True,
use_nwp: bool = True,
use_sat: bool = True,
use_hrv: bool = True,
use_pv: bool = True,
use_topo: bool = True,
use_future: bool = False,
size: int = 256,
size_meters: int = 256_000,
use_meters: bool = False,
start_time: datetime.datetime = datetime.datetime(2014, 1, 1),
end_time: datetime.datetime = datetime.datetime(2023, 1, 1),
batch_size: int = 1,
normalize_by_pvlib: bool = True,
one_d: bool = False,
is_test: bool = False,
) -> IterDataPipe:
"""
Make Pseudo-Irradience Datapipe
Expand Down

0 comments on commit cd77855

Please sign in to comment.