tobac icon indicating copy to clipboard operation
tobac copied to clipboard

Documentation page improvements

Open freemansw1 opened this issue 2 years ago • 10 comments

This PR brings over most of the documentation page improvements from #127 , and should pair nicely with #138 .

  • [x] Have you followed our guidelines in CONTRIBUTING.md?
  • [x] Have you self-reviewed your code and corrected any misspellings?
  • [x] Have you written documentation that is easy to understand?
  • [x] Have you written descriptive commit messages?
  • [ ] Have you added NumPy docstrings for newly added functions?
  • [ ] Have you formatted your code using black?
  • [ ] If you have introduced a new functionality, have you added adequate unit tests?
  • [x] Have all tests passed in your local clone?
  • [ ] If you have introduced a new functionality, have you added an example notebook?
  • [x] Have you kept your pull request small and limited so that it is easy to review?
  • [x] Have the newest changes from this branch been merged?

To get his feet wet on reviewing, I've requested @pjmarinescu as a reviewer here. As one of the original tobac devs, I think his perspective on this will be really useful.

freemansw1 avatar Jun 30 '22 02:06 freemansw1

Ah- I've now added readthedocs building to PRs, which has just failed! It builds locally, but clearly, there is an issue with readthedocs. I'll work on revising the PR shortly.

freemansw1 avatar Jun 30 '22 02:06 freemansw1

Codecov Report

Merging #150 (4074eae) into RC_v1.4.0 (90fb3ff) will increase coverage by 3.24%. The diff coverage is n/a.

@@              Coverage Diff              @@
##           RC_v1.4.0     #150      +/-   ##
=============================================
+ Coverage      31.69%   34.93%   +3.24%     
=============================================
  Files             11       11              
  Lines           2051     2098      +47     
=============================================
+ Hits             650      733      +83     
+ Misses          1401     1365      -36     
Flag Coverage Δ
unittests 34.93% <ø> (+3.24%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tobac/analysis.py 7.91% <0.00%> (ø)
tobac/segmentation.py 75.24% <0.00%> (ø)
tobac/centerofgravity.py 6.25% <0.00%> (ø)
tobac/plotting.py 3.08% <0.00%> (+<0.01%) :arrow_up:
tobac/feature_detection.py 70.71% <0.00%> (+2.64%) :arrow_up:
tobac/utils.py 46.75% <0.00%> (+5.71%) :arrow_up:
tobac/tracking.py 64.48% <0.00%> (+8.93%) :arrow_up:
tobac/testing.py 94.55% <0.00%> (+10.38%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

codecov[bot] avatar Jun 30 '22 02:06 codecov[bot]

Thanks to readthedocs, you can preview these new documents here: https://tobac--150.org.readthedocs.build/en/150/ (or by hitting details on the readthedocs action).

Also, given the relation to #138 , I've requested @snilsn as a third reviewer, if he is interested and has time.

freemansw1 avatar Jun 30 '22 02:06 freemansw1

I've gone through and made some substantial changes to this PR, including a new page describing some of the feature detection parameters and three new Jupyter notebooks addressing the same. I do plan to expand on this and do similar work on both the segmentation section and tracking section.

freemansw1 avatar Jul 04 '22 04:07 freemansw1

I wonder if we should move/copy the examples from the examples folder over to the readthedocs? Maybe that's a separate issue...

freemansw1 avatar Jul 04 '22 04:07 freemansw1

I really like the new notebooks. Together with an updated documentation this should really make getting started with tobac easier.

We just have to keep in mind, that @fsenf and I have been working on a very similar thing in tobac-tutorials, based on v2. I'm planning to make a PR with notebooks on tracking and segmentation there soon.

I think more examples can never hurt, but we should probably discuss how to proceed to avoid redundancy.

snilsn avatar Jul 04 '22 08:07 snilsn

Yes, agreed that I want to avoid duplication. I hadn't seen your new basics folder, and some of this definitely overlaps, although my code is written for v1.x rather than v2.x. As we progress into v2.x (and/or #143 is resolved), I think we should bring the basics notebooks over to the readthedocs to replace these notebooks? What are your thoughts?

Regardless, I think that we should discuss this at our developers' meeting this week.

freemansw1 avatar Jul 04 '22 13:07 freemansw1

Note that I've updated the documentation with the segmentation discussion here. I'm going to wait to request re-reviews until I add in the tracking discussion.

freemansw1 avatar Jul 11 '22 03:07 freemansw1

Committed the publication page now to this PR. Let me know if you have any comments or requests for changes here!

JuliaKukulies avatar Jul 23 '22 12:07 JuliaKukulies

And sorry, I reverted my first two commits because I still had the old index.rst in my branch. Now everything should be clean and the last three commits contain the additions for the publication page. Feel also free to move it somewhere else if you think it is not the best location to have it after the examples.

JuliaKukulies avatar Jul 26 '22 07:07 JuliaKukulies

I believe that I've addressed all the comments here.

I haven't yet finished (or even really started) the documentation on segmentation or tracking. I do want to do that, but I'm inclined to do that as a separate PR off of this one, once this one is merged? That will keep the review process simple. Let me know what you think @snilsn @JuliaKukulies @pjmarinescu

freemansw1 avatar Sep 09 '22 21:09 freemansw1

Looks good @freemansw1, I am happy with the changes! And I agree that you it would be easier to include the documentation on segmentation and tracking in a separate PR as this one is already quite big.

JuliaKukulies avatar Sep 10 '22 10:09 JuliaKukulies

Good work @freemansw1 , I'm happy with these edits and also with splitting the work on the documentation into two PRs.

snilsn avatar Sep 10 '22 18:09 snilsn

Thanks @snilsn and @JuliaKukulies . Given that @pjmarinescu has comments, I'll wait to hear from him before merging.

freemansw1 avatar Sep 12 '22 16:09 freemansw1

Agree regarding splitting into to PRs.

pjmarinescu avatar Sep 12 '22 16:09 pjmarinescu

Thanks everyone!

freemansw1 avatar Sep 12 '22 18:09 freemansw1