mirp icon indicating copy to clipboard operation
mirp copied to clipboard

JOSS review item: Examples

Open Matthew-Jennings opened this issue 10 months ago • 3 comments

Hi @alexzwanenburg. Great stuff putting this project together! Apologies for the delay in review, I hope you find the feedback useful. I'll separate my review items into individual issues. If you address an issue in a PR, please link the issue within the PR or vice versa.

The examples provided - forgive me - add almost nothing to the API documentation. I really think it is worth fleshing these out, and probably much more so than, say, separating out the installation instructions into a separate page from the README. In my experience, users heavily rely on examples to grok a library.

Well written examples, IMHO, should depict near end-to-end usage of MIRP's functionality, using actual input data (mock is okay, even preferred, but a placeholder "path/to/input/file" is usually not) and frequently, explicitly printing or plotting outputs along the way. To get an idea, have a look at this not-even-that-great-example in another repo I help maintain, PyMedPhys.

Presumably the meat of most of your conceivable examples is already present in your test suite?

Jupyter notebooks are excellent for this. If you struggle to integrate Jupyter notebooks into the docs, simply include an example folder of them and link to them from the docs.

Let me know what you think, happy to discuss.

Matthew-Jennings avatar Apr 04 '24 04:04 Matthew-Jennings

Thanks for the pointers! I have added a first tutorial to documentation. Check it out here: https://oncoray.github.io/mirp/tutorial_compute_radiomics_features_mr.html

I am leaving this issue open as more tutorials can and should be added.

alexzwanenburg avatar Apr 19 '24 15:04 alexzwanenburg

Reopened for JOSS review.

alexzwanenburg avatar May 16 '24 06:05 alexzwanenburg

A second tutorial may be found here: https://oncoray.github.io/mirp/tutorial_apply_image_filter.html

alexzwanenburg avatar May 16 '24 14:05 alexzwanenburg

Great! Happy to consider the JOSS item related to this issue closed. Feel free to close the actual issue if you like :)

Matthew-Jennings avatar Jun 07 '24 03:06 Matthew-Jennings