icecube / FIRESONG

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

documentation and argument names for flux_pdf #64

Closed JostMigenda closed 3 years ago

JostMigenda commented 3 years ago

[As part of the JOSS review.]

I’m overall impressed by the good documentation across the whole code base; even for internal functions that users of FIRESONG will never interact with directly. Well done!

I just noticed two very minor issues:


While I’m talking about minor issues regarding the arguments to flux_pdf, I may as well expand on this point that @rafaelab made:

Maybe this is me being picky, but I found it annoying that the keyword "Evolution" in firesong_simulation() is capitalised when all the other keywords are not. I got this wrong twice when trying to run a simple test without copy-pasting. The same goes for "Transient".

There are a few additional inconsistent argument names in flux_pdf:

This obviously shouldn’t block acceptance of the JOSS paper, but it would remove a tiny pain point when using the code. (Like Rafael, I too have been tripped up by this once or twice during my testing.) Of course, this is effectively a backwards-incompatible change to the API; so if you do decide do rename these arguments, I completely understand if you do it slowly and carefully so you don’t break all analysis scripts that use FIRESONG across multiple experiments. 😉

ChrisCFTung commented 3 years ago
  1. Doc string of flux_pdf has been addressed in #65
  2. Indeed the inconsistency of the options is an issue for user experience, but considering the impact that can be brought by changing those, I think it's a better choice to keep it the same
JostMigenda commented 3 years ago

That's fair. Of course, if there's ever a FIRESONG v2.0 which breaks backwards compatibility anyway, feel free to revisit this …