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

DM-13353: Add FITS compression support to gen3 formatter #257

Merged
merged 4 commits into from Jun 9, 2020

Conversation

timj
Copy link
Member

@timj timj commented Jun 5, 2020

No description provided.

@timj
Copy link
Member Author

timj commented Jun 5, 2020

Requires lsst/daf_butler#305

return recipe

# @staticmethod
def validateWriteRecipes(self, recipes):
Copy link
Member Author

Choose a reason for hiding this comment

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

@jonathansick points out that pydantic would be perfect here instead of hand crafted validation.

Copy link
Contributor

@PaulPrice PaulPrice left a comment

Choose a reason for hiding this comment

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

Nicely done!

* quantizePad: number of stdev to allow on the low side (for
STDEV_POSITIVE/NEGATIVE)
* bscale: manually specified BSCALE (for MANUAL scaling)
* bzero: manually specified BSCALE (for MANUAL scaling)
Copy link
Contributor

Choose a reason for hiding this comment

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

The four above are float.

Should the types be in backticks?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh. Hadn't thought about it since I copied it directly and never read it. Will see what the docs look like.

timj added 4 commits June 8, 2020 16:11
Also includes tests of lossless, no compression, and lossy.
Uses the gen2 cameraMapper code and writeRecipes.yaml content.
@timj timj merged commit 769a877 into master Jun 9, 2020
@timj timj deleted the tickets/DM-13353 branch June 9, 2020 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants