Skip to content
This repository has been archived by the owner on Oct 16, 2023. It is now read-only.

Reduce PySM package size #24

Open
zonca opened this issue Jun 18, 2018 · 4 comments
Open

Reduce PySM package size #24

zonca opened this issue Jun 18, 2018 · 4 comments

Comments

@zonca
Copy link
Collaborator

zonca commented Jun 18, 2018

hi!
the current 2.1.0 release tgz file at https://github.com/bthorne93/PySM_public/releases is 380MB.
This is quite big and is causing some random unit tests of TOAST to fail because the download from Github takes too long.

I wonder if it would be a good idea to store the maps in a separate Github repository and then use astropy.utils.data functionality to download it only when it is necessary (then cache it).

I recently implemented something similar in healpy to download pixel weights when needed: https://github.com/healpy/healpy/pull/442/files

@b-thorne
Copy link
Owner

Hi @zonca !

This would be a great feature to add, especially when the products become larger. In the future it is possible that individual files will need to be larger than the 100MB limit, do you have experience on how to handle downloading that either from Github or an alternative?

@zonca
Copy link
Collaborator Author

zonca commented Jun 28, 2018

yes, I think that if soon files could be larger than 100MB better avoid Github.
I wonder if we could host them on figshare, so that they would be versioned and easily available separately. I am not sure if that would work with astropy.data.utils, I'll need to test it.

@bthorne93 do you think figshare is an option or you'd prefer some institutional server?
If figshare is ok, I can make a test and see if I can use it with astropy.data.utils.

@b-thorne
Copy link
Owner

b-thorne commented Jun 29, 2018 via email

@zonca
Copy link
Collaborator Author

zonca commented Aug 3, 2018

it would be useful to provide input templates at all nsides between 512 and 8192, downloaded when requested by the user

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants