Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit dc98dab

Browse files
authored
🐛 Fix provenance flag for combined dataset
1 parent a6444dc commit dc98dab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

cube_builder/celery/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ def warp_merge(activity, band_map, mask, force=False, data_dir=None, **kwargs):
118118
merge_file_path = build_cube_path(record.warped_collection_id, merge_date,
119119
tile_id, version=version, band=record.band,
120120
prefix=data_dir, composed=False, **kwargs)
121-
122-
if activity['band'] == quality_band and (len(activity['args']['datasets']) or kwargs.get('combined')):
121+
# Enable Provenance for combined datasets like Landsat Program
122+
if activity['band'] == quality_band and (len(activity['args']['datasets']) >= 2 or kwargs.get('combined')):
123123
kwargs['build_provenance'] = True
124124

125125
reused = False

0 commit comments

Comments
 (0)