Skip to content

Commit

Permalink
Undo sharding filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobbieker committed Mar 30, 2023
1 parent f0a360c commit 28b0b47
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ocf_datapipes/training/metnet_pv_site.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ def metnet_site_datapipe(
pv_datapipe = used_datapipes["pv_future"].normalize(normalize_fn=normalize_pv)
# Split into GSP for target, only national, and one for history
pv_datapipe, pv_loc_datapipe = pv_datapipe.fork(2)
loc_datapipe = LocationPicker(pv_loc_datapipe).sharding_filter() # Ensure each worker gets a different location
pv_loc_datapipe, pv_id_datapipe = loc_datapipe.fork(2)
pv_loc_datapipe, pv_id_datapipe = LocationPicker(pv_loc_datapipe).loc_datapipe.fork(2)
pv_history = pv_history.select_id(pv_id_datapipe, data_source_name="pv")

if "nwp" in used_datapipes.keys():
Expand Down

0 comments on commit 28b0b47

Please sign in to comment.