kellykochanski / rescal-snow

A model of dunes and snow-waves
GNU General Public License v3.0
12 stars 5 forks source link

JOSS Review (@rgmyr): Python utilities documentation and style #28

Closed rgmyr closed 5 years ago

rgmyr commented 5 years ago

The Python tools in scripts/utilities seem useful and functional, but some of the style and docstring conventions are inconsistent and unusual. Docstring coverage and consistency is the most relevant thing with respect to JOSS review guidelines, and I will give you credit for Functionality documentation once that is improved, but I'll also list some more minor points that I would like to see improved as a Python user:

When at least the first two points are satisfactorily addressed, I will be happy to mark Functionality documentation complete. The tutorials and other documentation files are great! My only small suggestion there is that docs/rescal-snow-inputs.md would be a easier to read if you used bold or verbatim text for the parameter and variable names.

rgmyr commented 5 years ago

@kellykochanski Thanks! Also I realize that some of the above points may seem nitpicky. I'm open to the argument that this is not primarily a python package, and I will be lenient as far as submission acceptance goes (although I do stand by them as suggestions, and hope that they're helpful in improving your Python work generally). The most important things to me are that docstrings use triple quotes, be placed under the def and class lines, and that there be some overview of utilities file contents.

kellykochanski commented 5 years ago

@rgmyr I appreciate the feedback. rescal_utilities has been developed by several people with different coding backgrounds and styles. During development, I focused on having a consistent level of functional documentation and examples, but did not set standards for any of the points you have mentioned above.

Most of these should be relatively straightforward changes.

kellykochanski commented 5 years ago

As a follow-up, however, Rescal-snow is not primarily a python package; the python components are tools for simulation setup, data management, and analysis, which we expect will be useful to some but not all users.

kellykochanski commented 5 years ago

@21dmohan @defaziogiancarlo You should take a look at these comments - a lot of rgmyr's feedback is relevant to your functions and will help you polish your future Python code.

(No need to change your code - I'm addressing these review comments)

21dmohan commented 5 years ago

Thank you for the feedback! I will definitely utilize this information and resources as I continue to code!

kellykochanski commented 5 years ago

@rgmyr I believe I've addressed your points in the JOSS-fixes branch:

rgmyr commented 5 years ago

@kellykochanski Awesome, looks good to me. I will close this issue and mark Functionality documentation completed.