trixi-framework / Trixi.jl

Trixi.jl: Adaptive high-order numerical simulations of conservation laws in Julia
https://trixi-framework.github.io/Trixi.jl
MIT License
505 stars 98 forks source link

First steps tutorial review procesing #1892

Closed ArseniyKholod closed 2 months ago

ArseniyKholod commented 3 months ago

This PR addresses the following review for first_steps conducted by Manuel Torrilhon.

Preview

github-actions[bot] commented 3 months ago

Review checklist

This checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging.

Purpose and scope

Code quality

Documentation

Testing

Performance

Verification

Created with :heart: by the Trixi.jl community.

ArseniyKholod commented 3 months ago

I have addressed all suggested changes except for two unchecked points, which pertain to suppressing the trixi_include output from the first part of first steps. I believe it is helpful to see the output from Trixi's elixirs to understand what to expect. But perhaps I am mistaken.

JoshuaLampert commented 3 months ago

Just a small note: To reduce noise, you can use "Add suggestion to batch" from the GitHub interface and then only have one commit where multiple suggestions from the code review are applied.

ArseniyKholod commented 3 months ago

Just a small note: To reduce noise, you can use "Add suggestion to batch" from the GitHub interface and then only have one commit where multiple suggestions from the code review are applied.

Oh, thank you! I'll make sure to follow this next time.

DanielDoehring commented 3 months ago

Oh, thank you! I'll make sure to follow this next time.

For some reason, this is (for me) only available in the "Files changed" tab, i.e., not in the "Conversation" tab - I missed this also completely in my first PRs.

JoshuaLampert commented 3 months ago

I guess a review from @torrilhon would be nice.

torrilhon commented 3 months ago

Will do! Nice work, but I will add some minor suggestions. Give me some time, though...

ArseniyKholod commented 2 months ago

Thank you very much for your meaningful review, @torrilhon!

I applied all the suggestions I could.

sloede commented 2 months ago

Thanks a lot for your suggestions and effort @torrilhon. Would you like to perform a final review?

@ArseniyKholod Thanks a lot for your work on this. It would be great if you could modify the TODO list above and explain with a short sentence why some points will not be fixed.

ArseniyKholod commented 2 months ago

Thanks a lot for your suggestions and effort @torrilhon. Would you like to perform a final review?

@ArseniyKholod Thanks a lot for your work on this. It would be great if you could modify the TODO list above and explain with a short sentence why some points will not be fixed.

The only thing, that was not done, is suppressing outputs from code blocks of the getting_started section, e.g. from trixi_include. The reason for suppressing is that output of e.g. trixi_include was explained first time only in the next section create_first_setup. But I think it's very useful to see a real output in tutorial, as it could be an unexpected output in case a newer will run code himself. IMHO an output mostly is self-explanatory. I could be wrong... What would you say, Michael?

PS. Suppressing output of trixi_include seems to be tricky, as ; will not work here, I only could imagine to redirect the output stream somehow in a file or smth like that.

sloede commented 2 months ago

What would you say, Michael?

I'm ok either way - since you're the maintainer, I leave the decision up to you.

I don't know if this is an option from technical point of view, but what about showing an example output only (i.e., with the timespan reduced such that only ~10 steps are needed) but then suppress the original, long output?

Again, I don't know if this really improves matters, thus I'll leave it up to you

ArseniyKholod commented 2 months ago

What would you say, Michael?

I'm ok either way - since you're the maintainer, I leave the decision up to you.

I don't know if this is an option from technical point of view, but what about showing an example output only (i.e., with the timespan reduced such that only ~10 steps are needed) but then suppress the original, long output?

Again, I don't know if this really improves matters, thus I'll leave it up to you

Thanks for the suggestion! The example runs only 37 steps, so 10 steps sound like not really big reducing, since most of the output in this case is show of different structures and independent on number of steps...

sloede commented 2 months ago

What would you say, Michael?

I'm ok either way - since you're the maintainer, I leave the decision up to you. I don't know if this is an option from technical point of view, but what about showing an example output only (i.e., with the timespan reduced such that only ~10 steps are needed) but then suppress the original, long output? Again, I don't know if this really improves matters, thus I'll leave it up to you

Thanks for the suggestion! The example runs only 37 steps, so 10 steps sound like not really big reducing, since most of the output in this case is show of different structures and independent on number of steps...

OK, then maybe it is as good as it gets :-)

torrilhon commented 2 months ago

I am also fine with showing the output.

sloede commented 2 months ago

Not sure what else I need to "review" here, but I just submit another "approve"...

Thanks a lot for your feedback. I'll do a final review and then we can merge this.

ArseniyKholod commented 2 months ago

A number of small suggestions for clarity, but I'll leave it up to you if you want to include or reject them. Please ping me once your done such that we can merge this.

Thank you very much for the review, @sloede ! I committed all suggested changes.