temuller / hostphot

HostPhot: global and local photometry of galaxies hosting supernovae or other transients
https://hostphot.readthedocs.io/en/latest/
MIT License
5 stars 2 forks source link

[JOSS] Initial comments about code and repository #1

Closed krachyon closed 2 years ago

krachyon commented 2 years ago

Basing this on commit 011333f84486614cb9339d3874dc072c45ebed23, using Python 3.10.5 (main, Jun 6 2022, 18:49:26) [GCC 12.1.0] on linux

temuller commented 2 years ago

I am having issues trying to understand the second points:

Data originally checked into and subsequently removed is still visible/available in the history, so every clone of the repository will still download the files. If you didn't plan on publishing it, you should re-write the repository history with something like an interactive rebase.

Are you talking about files that are no longer needed but are saved in the history? Could you please rephrase this?

krachyon commented 2 years ago

Are you talking about files that are no longer needed but are saved in the history? Could you please rephrase this?

Yes, when looking at the git-history you can still see (and access) e.g. images/SN2006bh/PS1_g.fits, the file's contents are still automatically downloaded when the repository is cloned. If you happen to change them slightly, all versions that once existed have to be transferred on clone, this can blow up your repository size very quickly and is why typically you should not add binaries to version control.

If those files are something you did not want to publish, you'll have to delete them from the history. Some context and a solution to do that are here https://stackoverflow.com/questions/58161926/permanently-removing-a-file-from-git-history

krachyon commented 2 years ago

In a recent commit you commented out the __pycache__ entry in .gitignore, these dirs should not be added to version control. They contain machine-specific information like &/home/tomas/hostphot/tests/__init__.py which can cause pretty confusing errors for others.

temuller commented 2 years ago

Thanks, I will remove this as well.

krachyon commented 2 years ago

I'll mark this as resolved with the review done...