Skip to content
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

Array Quantities #192

Merged
merged 12 commits into from
Dec 4, 2022
Merged

Array Quantities #192

merged 12 commits into from
Dec 4, 2022

Conversation

PaulHuwe
Copy link
Collaborator

Ticket to support quantities for data arrays in the pipeline.

Note: I kept the number of dimensions and types in the files for future reference, depending on future updates to quantity support in asdf.

tag: tag:stsci.edu:asdf/core/ndarray-1.0.0
datatype: uint16
ndim: 5
tag: tag:stsci.edu:asdf/unit/quantity-1.1.0
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know the exact unit/units involved here? If so should we try to enforce this as part of the schema?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same goes for the rest of the quantities involved.

Copy link
Collaborator

@schlafly schlafly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

What is special about amp33 in wfi_science_raw that leads it to be the only array that gets the additional "units:" stanza?

@WilliamJamieson
Copy link
Collaborator

Looks good to me.

What is special about amp33 in wfi_science_raw that leads it to be the only array that gets the additional "units:" stanza?

I see special archive keywords there, so that maybe it. Though they look new in this PR.

@PaulHuwe
Copy link
Collaborator Author

PaulHuwe commented Dec 4, 2022

Looks good to me.

What is special about amp33 in wfi_science_raw that leads it to be the only array that gets the additional "units:" stanza?

Good catch! This was vestigial code.

@PaulHuwe PaulHuwe marked this pull request as ready for review December 4, 2022 20:37
@PaulHuwe PaulHuwe merged commit 98d8760 into spacetelescope:main Dec 4, 2022
This was referenced Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants