icecube / FIRESONG

FIRst Extragalactic Simulation Of Neutrino and Gamma-ray
Other
18 stars 8 forks source link

Installation instructions #55

Closed JostMigenda closed 3 years ago

JostMigenda commented 3 years ago

[As part of the JOSS review.]

I ran into several issues while trying to install FIRESONG.

JostMigenda commented 3 years ago

Additionally, one of the dependencies (CosmoloPy) apparently fails to install under Python 3.8 or newer. I’ve opened an issue on the CosmoloPy repo. Please let me know whether there’s a workaround or whether I should continue testing with Python 3.7 for now.

JostMigenda commented 3 years ago

This commit solves the issues listed above, thank you! And in the meantime, the CosmoloPy issue was also fixed and it can now be pip-installed under Python 3.8 as well, so I will continue to use that for testing.

3.9 isn’t supported by CosmoloPy yet, though; it would probably be good to mention that in the README file to save users some trouble trying to debug it. Also, the version you uploaded to PyPI is still missing the jupyter and matplotlib requirements, unfortunately; it looks like you uploaded an incomplete version of the code there?

PS: If you weren’t already aware of it, check out this GitHub Action to automate publishing to PyPI whenever you create a new release; maybe that’s helpful to you?

ChrisCFTung commented 3 years ago

Hi @JostMigenda,

Sorry about the confusion, that previous version I uploaded to pypi was not ready. In order to address the issues you mentioned, I have released a new version v.1.6.1 (also updated on PyPI), which no longer require cosmolopy. I believe this can avoid any future python version issue. The switch has effectively no impact on the result.

regarding the requirement of jupyter and matplotlib, I think they are not really involved in the core functions of FIRESONG, so I don't want to force users to install these packages. However, I have stated explicitly in the README that access to the examples requires jupyter notebook and matplotlib. Please let me know if that make sense to you.

And thank you for the suggestion on publishing automatically to PyPI. I will definitely implement that.

JostMigenda commented 3 years ago

Nice to see that removing the dependency on cosmolopy was possible without too much trouble; this should indeed prevent most issues with future Python versions. Regarding jupyter and matplotlib, that seems like a good compromise to me, yes. Thanks!