Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: memory efficient dgp wicker reduction #163

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions dgp/contribs/dgp2wicker/dgp2wicker/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ def ingest_dgp_to_wicker(
is_pd: bool = False,
data_uri: str = None,
alternate_scene_uri: str = None,
skip_missing_data: bool = False,
) -> Dict[str, int]:
"""Ingest DGP dataset into Wicker datastore

Expand Down Expand Up @@ -420,6 +421,7 @@ def open_scene(

dataset_kwargs = deepcopy(dataset_kwargs)
dataset_kwargs['scene_json'] = os.path.join(local_path, scene_json)
dataset_kwargs['skip_missing_data'] = skip_missing_data

is_pd = dataset_kwargs.pop('is_pd')

Expand Down Expand Up @@ -524,6 +526,7 @@ def process_scene(
)

dataset_kwargs['is_pd'] = is_pd
dataset_kwargs['skip_missing_data'] = skip_missing_data

if pipeline is None:
pipeline = []
Expand Down Expand Up @@ -587,4 +590,6 @@ def process_scene(
wicker_dataset_version,
wicker_dataset_schema,
rdd,
local_reduction=True,
sort=True,
)
Loading