Skip to content

Commit

Permalink
Trim empty datasets out when validating
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew committed Feb 24, 2025
1 parent e6b43a0 commit 0c368d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dkist/dataset/tiled_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def __getitem__(self, aslice):

@staticmethod
def _validate_component_datasets(datasets, inventory):
datasets = datasets.compressed()
datasets = [ds for ds in datasets.compressed() if ds is not None]
inv_1 = datasets[0].meta["inventory"]
if inv_1 and inv_1 is not inventory:
raise ValueError("The inventory record of the first dataset does not match the one passed to TiledDataset")
Expand Down

0 comments on commit 0c368d4

Please sign in to comment.