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-31542: Allow writeFitsWithOptions for image/mask to select the options section #604

Merged
merged 1 commit into from Aug 30, 2021

Conversation

timj
Copy link
Member

@timj timj commented Aug 27, 2021

Image and Mask previously always used an "image" section of the
compression options. This made it impossible to reuse the compression
settings from an Exposure without copying the relevant section to
image. This change allows the section to be explicitly specified
so that a user can declare that they want the variance settings
to be applied. Mask is changed to always prefer "mask" section
before falling back to "image".

----------
dest : `str`
Fits file path to which to write the mask.
options : `lsst.daf.base.PropertySet
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing backtick.

It must contain an `lsst.daf.base.PropertySet` with data for
``lsst.afw.fits.ImageWriteOptions``.
item : `str`, optional
Item to read from the ``options`` `lsst.daf.base.PropertySet`.
Copy link
Contributor

Choose a reason for hiding this comment

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

You have mentioned the type of options multiple times...

Image and Mask previously always used an "image" section of the
compression options. This made it impossible to reuse the compression
settings from an Exposure without copying the relevant section to
image. This change allows the section to be explicitly specified
so that a user can declare that they want the variance settings
to be applied. Mask is changed to always prefer "mask" section
before falling back to "image".
@timj timj merged commit a185acb into master Aug 30, 2021
@timj timj deleted the tickets/DM-31542 branch August 30, 2021 21:18
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.

None yet

2 participants