Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-16857

Convert afw.detection to numpydoc

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
    • Story Points:
      10
    • Epic Link:
    • Sprint:
      AP F20-6 (November), AP S21-1 (December)
    • Team:
      Alert Production

      Description

      Convert all Doxygen-formatted docstrings in afw.detection to Numpydoc style, and move corresponding topic documentation to doc/.

        Attachments

          Issue Links

            Activity

            No builds found.
            krzys Krzysztof Findeisen created issue -
            krzys Krzysztof Findeisen made changes -
            Field Original Value New Value
            Epic Link DM-16722 [ 235355 ]
            krzys Krzysztof Findeisen made changes -
            Story Points 1
            krzys Krzysztof Findeisen made changes -
            Assignee Krzysztof Findeisen [ krzys ]
            krzys Krzysztof Findeisen made changes -
            Story Points 1
            Hide
            krzys Krzysztof Findeisen added a comment -

            afw.detection has already been converted.

            Show
            krzys Krzysztof Findeisen added a comment - afw.detection has already been converted.
            krzys Krzysztof Findeisen made changes -
            Resolution Done [ 10000 ]
            Status To Do [ 10001 ] Invalid [ 11005 ]
            Hide
            krzys Krzysztof Findeisen added a comment -

            Turns out the documentation wasn't actually being displayed. Re-opening.

            Show
            krzys Krzysztof Findeisen added a comment - Turns out the documentation wasn't actually being displayed. Re-opening.
            krzys Krzysztof Findeisen made changes -
            Resolution Done [ 10000 ]
            Status Invalid [ 11005 ] In Progress [ 3 ]
            krzys Krzysztof Findeisen made changes -
            Link This issue is blocked by DM-16863 [ DM-16863 ]
            krzys Krzysztof Findeisen made changes -
            Status In Progress [ 3 ] To Do [ 10001 ]
            Hide
            krzys Krzysztof Findeisen added a comment -

            Documentation cannot currently be built; I think the errors will go away once afw.table is numpydoc-compatible.

            Show
            krzys Krzysztof Findeisen added a comment - Documentation cannot currently be built; I think the errors will go away once afw.table is numpydoc-compatible.
            krzys Krzysztof Findeisen made changes -
            Assignee Krzysztof Findeisen [ krzys ]
            krzys Krzysztof Findeisen made changes -
            Sprint AP S19-1 [ 825 ]
            swinbank John Swinbank made changes -
            Epic Link DM-16722 [ 235355 ] DM-17887 [ 240317 ]
            swinbank John Swinbank made changes -
            Epic Link DM-17887 [ 240317 ] DM-19979 [ 307530 ]
            swinbank John Swinbank made changes -
            Epic Link DM-19979 [ 307530 ] DM-21441 [ 423048 ]
            swinbank John Swinbank made changes -
            Epic Link DM-21441 [ 423048 ] DM-22484 [ 427311 ]
            swinbank John Swinbank made changes -
            Epic Link DM-22484 [ 427311 ] DM-24339 [ 433026 ]
            swinbank John Swinbank made changes -
            Epic Link DM-24339 [ 433026 ] DM-25142 [ 435260 ]
            swinbank John Swinbank made changes -
            Epic Link DM-25142 [ 435260 ] DM-26803 [ 439755 ]
            sullivan Ian Sullivan made changes -
            Assignee Kenneth Herner [ kherner ]
            sullivan Ian Sullivan made changes -
            Sprint AP F20-6 (November) [ 1052 ]
            Hide
            yusra Yusra AlSayyad added a comment -

            Ian Sullivan, Eric Bellm, Krzysztof Findeisen Looks like this ticket has evolved from the original description. What needs to be done now?

             

            Show
            yusra Yusra AlSayyad added a comment - Ian Sullivan , Eric Bellm , Krzysztof Findeisen  Looks like this ticket has evolved from the original description. What needs to be done now?  
            Hide
            krzys Krzysztof Findeisen added a comment - - edited

            The Sphinx documentation for lsst.afw.detection still isn't activated (see https://pipelines.lsst.io/v/daily/modules/lsst.afw.detection/index.html, which doesn't have any of the Python API). The topic page is also still in Doxygen (https://github.com/lsst/afw/blob/master/doc/mainpage.dox#L284).

            In addition, while the Python docstrings have been converted from Doxygen-style (https://github.com/lsst/afw/blob/master/python/lsst/afw/detection/multiband.py), some of them can't really be called Numpydoc-style (https://github.com/lsst/afw/blob/master/python/lsst/afw/detection/_footprintMerge.py).

            So I think the original description still stands.

            Show
            krzys Krzysztof Findeisen added a comment - - edited The Sphinx documentation for lsst.afw.detection still isn't activated (see https://pipelines.lsst.io/v/daily/modules/lsst.afw.detection/index.html , which doesn't have any of the Python API). The topic page is also still in Doxygen ( https://github.com/lsst/afw/blob/master/doc/mainpage.dox#L284 ). In addition, while the Python docstrings have been converted from Doxygen-style ( https://github.com/lsst/afw/blob/master/python/lsst/afw/detection/multiband.py ), some of them can't really be called Numpydoc-style ( https://github.com/lsst/afw/blob/master/python/lsst/afw/detection/_footprintMerge.py ). So I think the original description still stands.
            kherner Kenneth Herner logged work - 09/Nov/20 7:27 PM
            • Time Spent:
              1 day, 4 hours
               

              Updated docstrings, removed doxygen-style sections, corrected formatting errors, enabled Python API section in Sphinx docs. Took longer than originally hoped owing to unfamiliarity with the setup, code base, and best practices.

            Hide
            kherner Kenneth Herner added a comment -

            Thanks, I'll go through them in detail to get what was missed.

            Show
            kherner Kenneth Herner added a comment - Thanks, I'll go through them in detail to get what was missed.
            kherner Kenneth Herner made changes -
            Status To Do [ 10001 ] In Progress [ 3 ]
            Hide
            kherner Kenneth Herner added a comment -

            Krzysztof, are you free to review these changes for DM-16857? A pull request is in and the Jenkins run is here:

            https://ci.lsst.codes/job/stack-os-matrix/33164/display/redirect

            Show
            kherner Kenneth Herner added a comment - Krzysztof, are you free to review these changes for DM-16857 ? A pull request is in and the Jenkins run is here: https://ci.lsst.codes/job/stack-os-matrix/33164/display/redirect
            kherner Kenneth Herner made changes -
            Reviewers Krzysztof Findeisen [ krzys ]
            Status In Progress [ 3 ] In Review [ 10004 ]
            sullivan Ian Sullivan made changes -
            Sprint AP F20-6 (November) [ 1052 ] AP F20-6 (November), AP S21-1 (December) [ 1052, 1059 ]
            kherner Kenneth Herner made changes -
            Attachment build_DM-16857_2020-12-01.tar.gz [ 46492 ]
            krzys Krzysztof Findeisen made changes -
            Status In Review [ 10004 ] In Progress [ 3 ]
            Hide
            krzys Krzysztof Findeisen added a comment -

            Looks much better, though the topic page for detection is still inside Doxygen. I give an example of how it could be moved to Sphinx, though I think this particular page could simply be deleted with no loss of information. Happy to re-review once either is done.

            Show
            krzys Krzysztof Findeisen added a comment - Looks much better, though the topic page for detection is still inside Doxygen. I give an example of how it could be moved to Sphinx, though I think this particular page could simply be deleted with no loss of information. Happy to re-review once either is done.
            krzys Krzysztof Findeisen made changes -
            Status In Progress [ 3 ] In Review [ 10004 ]
            Hide
            krzys Krzysztof Findeisen added a comment -

            Revised version looks good!

            Show
            krzys Krzysztof Findeisen added a comment - Revised version looks good!
            krzys Krzysztof Findeisen made changes -
            Status In Review [ 10004 ] Reviewed [ 10101 ]
            kherner Kenneth Herner made changes -
            Worklog Id 30604 [ 30604 ]
            Remaining Estimate 0 minutes [ 0 ]
            Time Spent 1 day, 4 hours [ 43200 ]
            Hide
            kherner Kenneth Herner added a comment -

            Did a final build check (passed) and merged to master just now. That should do the trick.

            Show
            kherner Kenneth Herner added a comment - Did a final build check (passed) and merged to master just now. That should do the trick.
            kherner Kenneth Herner made changes -
            Resolution Done [ 10000 ]
            Status Reviewed [ 10101 ] Done [ 10002 ]
            sullivan Ian Sullivan made changes -
            Epic Link DM-26803 [ 439755 ] PREOPS-124 [ 441054 ]
            sullivan Ian Sullivan made changes -
            Story Points 1 6
            sullivan Ian Sullivan made changes -
            Story Points 6 10

              People

              Assignee:
              kherner Kenneth Herner
              Reporter:
              krzys Krzysztof Findeisen
              Reviewers:
              Krzysztof Findeisen
              Watchers:
              Kenneth Herner, Krzysztof Findeisen, Yusra AlSayyad
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 4 hours
                  1d 4h

                    Jenkins

                    No builds found.