-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support to TiledDataset for missing, irregular or overlapping tiles #487
Open
SolarDrew
wants to merge
15
commits into
DKISTDC:main
Choose a base branch
from
SolarDrew:tiledds-improvements
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+75
−14
Open
Changes from 5 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
ffc9b79
Add mask to TiledDataset's array of datasets
SolarDrew 6a72839
Parametrize tiled dataset fixtures to test with a mask as well
SolarDrew 06aae95
Make parametrized fixture within parameter work
SolarDrew 4cffe7a
Add new yaml schema for masked TiledDataset
SolarDrew ad4e19f
Merge branch 'main' of github.com:DKISTDC/dkist into tiledds-improvem…
SolarDrew d242313
Update dkist/io/asdf/converters/tiled_dataset.py
SolarDrew c7699a9
Merge branch 'main' into tiledds-improvements
SolarDrew e1a8037
Add new manifest
SolarDrew c81ec9d
Update schema id
SolarDrew ca74036
Merge branch 'tiledds-improvements' of github.com:SolarDrew/dkist int…
SolarDrew 07a6b66
Add manifest to entry points
SolarDrew 3213198
This was breaking things but I'm not mad, you're mad
SolarDrew 672c336
Changelog
SolarDrew df9e92b
Merge branch 'main' of github.com:DKISTDC/dkist into tiledds-improvem…
SolarDrew c8ef224
Save mask out to yaml as array instead of list
SolarDrew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SolarDrew marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
%YAML 1.1 | ||
--- | ||
$schema: "http://stsci.edu/schemas/yaml-schema/draft-01" | ||
id: "asdf://dkist.nso.edu/schemas/tiled_dataset-1.0.0" | ||
|
||
title: | | ||
A DKIST Tiled Dataset object. | ||
description: | ||
The container for a set of Dataset objects. | ||
|
||
type: object | ||
properties: | ||
datasets: | ||
description: A nested structure of Dataset objects | ||
type: array | ||
items: | ||
type: array | ||
items: | ||
anyOf: | ||
- tag: "asdf://dkist.nso.edu/tags/dataset-1.*" | ||
- null: true | ||
inventory: | ||
description: A copy of the inventory record for this dataset. | ||
type: object | ||
mask: | ||
description: A mask to indicate if invalid or missing Datasets should be ignored. | ||
type: array | ||
items: | ||
type: array | ||
items: | ||
- type: boolean | ||
|
||
required: [datasets, inventory, mask] | ||
additionalProperties: false | ||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we auto-generate the mask based on the elements of dataset_array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I expect so. We can readily assume anything that isn't a Dataset should be masked out, but we should probably also have some way of flagging invalid Datasets for masking as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the default value of mask be
None
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either works fine.
False
is specifying to set the mask to beFalse
(ie: not masked) everywhere. Which is the default if you passNone
intomasked_array
anyway, but explicit is better than implicit.