Skip to content

Commit

Permalink
fix: add production book
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jul 11, 2023
1 parent 73ffc94 commit 1be38aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ocf_datapipes/load/satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def open_sat_data(
ds = open_sat_data(zarr_paths)
```
"""
_log.info("Opening satellite data: %s", zarr_path)
_log.info(f"Opening satellite data: %s, {use_15_minute_data_if_needed=}", zarr_path)

# Silence the warning about large chunks.
# Alternatively, we could set this to True, but that slows down loading a Satellite batch
Expand Down Expand Up @@ -113,6 +113,8 @@ def open_sat_data(
dataset = dataset.load()
_log.debug("Resampling 15 minute data to 5 mins")
dataset = dataset.resample(time="5T").interpolate("linear")
else:
_log.debug("Not using 15 minute data")

# Remove data coordinate dimensions if they exist
if "x_geostationary_coordinates" in dataset:
Expand Down
1 change: 1 addition & 0 deletions ocf_datapipes/training/pvnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ def _get_datapipes_dict(
use_hrv=False,
use_nwp=not block_nwp, # Only loaded if we aren't replacing them with zeros
use_topo=False,
production=production,
)
if production:
configuration: Configuration = datapipes_dict["config"]
Expand Down

0 comments on commit 1be38aa

Please sign in to comment.