Skip to content

Commit

Permalink
add skip missing data
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisochoatri committed Mar 29, 2024
1 parent e7c9de6 commit c92cf7e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 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

0 comments on commit c92cf7e

Please sign in to comment.