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-40746: Fix size and shape of HiPS Allsky file. #831

Merged
merged 2 commits into from
Sep 14, 2023
Merged

Conversation

erykoff
Copy link
Contributor

@erykoff erykoff commented Sep 13, 2023

This also adds the ability to specify the Allsky file to be a jpeg or png.

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
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@timj timj left a 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.

@erykoff
Copy link
Contributor Author

erykoff commented Sep 13, 2023

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.

@erykoff erykoff merged commit 80d919d into main Sep 14, 2023
2 checks passed
@erykoff erykoff deleted the tickets/DM-40746 branch September 14, 2023 15:42
@gpdf
Copy link

gpdf commented Sep 14, 2023

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 Allsky file.

I think we need it to be easier for us to pick between PNG and JPEG in the future.

@erykoff
Copy link
Contributor Author

erykoff commented Sep 14, 2023

Yes indeed, and that's what DM-40747 can do, but it has to be done for everything at once.

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