Skip to content

Commit

Permalink
Save mask out to yaml as array instead of list
Browse files Browse the repository at this point in the history
  • Loading branch information
SolarDrew committed Jan 23, 2025
1 parent df9e92b commit c8ef224
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dkist/io/asdf/converters/tiled_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ def to_yaml_tree(cls, tiled_dataset, tag, ctx):
tree = {}
tree["inventory"] = tiled_dataset._inventory
tree["datasets"] = tiled_dataset._data.tolist()
tree["mask"] = tiled_dataset._data.mask.tolist()
tree["mask"] = tiled_dataset._data.mask

Check warning on line 23 in dkist/io/asdf/converters/tiled_dataset.py

View check run for this annotation

Codecov / codecov/patch

dkist/io/asdf/converters/tiled_dataset.py#L23

Added line #L23 was not covered by tests
return tree
6 changes: 1 addition & 5 deletions dkist/io/asdf/resources/schemas/tiled_dataset-1.1.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@ properties:
type: object
mask:
description: A mask to indicate if invalid or missing Datasets should be ignored.
type: array
items:
type: array
items:
- type: boolean
datatype: bool8

required: [datasets, inventory, mask]
additionalProperties: false
Expand Down

0 comments on commit c8ef224

Please sign in to comment.