-
Notifications
You must be signed in to change notification settings - Fork 58
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
Seed dithering #411
Seed dithering #411
Conversation
@dstndstn does this work for you? |
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.
Are there other parts of the lossy compression seed setting in the fits standard / cfitsio that we should be aware of to make sure our APIs here can support? We need not implement them OFC.
Possibly. This code I added only sets the seed when you create the HDU, which seems safe. What other operations should be supported? |
The other options allowed by the standard are
This all gets coupled into the FITS header via
and here is the doc string for
The default according to the fpackguide is
So we could support the following options for
|
yikes, I should have red the docs first |
Also restrict range of seeds
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.
A few tweaks but looking good. We'll need to adjust the tests to cover more cases and not error on -3. We should also test that -3 and -1 give the same answer.
case insensitive, allow all negative
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.
LGTM! Thanks!
OK, we'll see what Dustin says |
closes #351
Add ability to seed the subtractive dither