-
Notifications
You must be signed in to change notification settings - Fork 19
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-40746: Fix size and shape of HiPS Allsky file. #831
Conversation
row = math.floor(pix_num//n_tiles_per_side) | ||
column = pix_num % n_tiles_per_side | ||
row = math.floor(pix_num//n_tiles_wide) | ||
column = pix_num % n_tiles_wide |
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.
Row and column both use the width?
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.
Yeah, it's div and mod to get x/y from an ordered list.
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.
Looks ok to me.
be0b2e7
to
5f27628
Compare
I have removed the commit which allows you to specify the Allsky filetype since it cannot be specified independently of the rest of the hips images. |
Regarding the filetype specification: even though it can't in practice be specified to be different from the filetype of the underlying tiles, it's still a problem that the filetype is hard-coded. So it was reasonable for there to be a parameter for the filetype - which, however, should be used both for the input regex and for the output I think we need it to be easier for us to pick between PNG and JPEG in the future. |
Yes indeed, and that's what DM-40747 can do, but it has to be done for everything at once. |
This also adds the ability to specify the Allsky file to be a jpeg or png.