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 Feb 19, 2025
1 parent 4e5c35d commit b26cf00
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 @@ -31,5 +31,5 @@ def to_yaml_tree(cls, tiled_dataset, tag, ctx):
meta.pop("history", None)
tree["meta"] = meta
tree["datasets"] = tiled_dataset._data.tolist()
tree["mask"] = tiled_dataset._data.mask.tolist()
tree["mask"] = tiled_dataset._data.mask
return tree
6 changes: 1 addition & 5 deletions dkist/io/asdf/resources/schemas/tiled_dataset-1.2.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ properties:

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, meta, mask]
additionalProperties: false
Expand Down

0 comments on commit b26cf00

Please sign in to comment.