Skip to content

DOC: docstrings in robust.norms, improve, reorganize #8807

Description

@josef-pkt

The docstrings for methods in robust norm have the formulas in the Returns section.

Would be better before Parameter section as extended description.
Also converting to math will look better if we can get table formatting of equations (align for z ... in piecewise functions)

Activity

  1. added this to the 0.15 milestone on Apr 17, 2023
  2. jkriv commented on Apr 19, 2023

    @jkriv

    I would be willing to work on this issue!

  3. josef-pkt commented on Apr 19, 2023

    @josef-pkt
    MemberAuthor

    That would be great.
    It's mostly rearranging the docstring and adding the math directive, and checking that docstring renders correctly.

  4. jkriv commented on Apr 19, 2023

    @jkriv

    Sounds good. I also noticed when I was looking at this code that there are some classes that are untested. Would you like me to attempt to add unit tests to the file test_norms.py?

  5. josef-pkt commented on Apr 19, 2023

    @josef-pkt
    MemberAuthor

    which classes are untested?

    I just added unit tests for norms a few days ago, and there shouldn't be gaps left.

  6. jkriv commented on Apr 19, 2023

    @jkriv

    I saw some comments that said "TODO: this is untested" on the trimmedmean class, but I do see that there is an instance of trimmedmean in the test_norms.py file.

  7. josef-pkt commented on Apr 19, 2023

    @josef-pkt
    MemberAuthor

    I forgot to look for outdated code comments when I added the unit tests.
    those should be removed

  8. Sudo-Guy commented on Jul 19, 2023

    @Sudo-Guy

    What is the status on this issue, I'm willing to work on it if no one has picked it up.

  9. josef-pkt commented on Jul 20, 2023

    @josef-pkt
    MemberAuthor

    There has not been any work done on this, AFAIR.
    pull request would be welcome.

  10. Ca7Ac1 commented on Jul 26, 2023

    @Ca7Ac1
    Contributor

    Hello! I wanted to mention that I'm working on this along with @sudo-CompSciGod. We should hopefully be able to get a pull request ready soon!

  11. maxkuttner commented on Oct 15, 2024

    @maxkuttner

    Hello @josef-pkt. Is the issue still open?

  12. Athar-cell commented on Jan 26, 2026

    @Athar-cell

    Hi @josef-pkt, I would like to work on this issue and take care of rearranging the docstrings and improving the math rendering.
    Please let me know if that’s okayy

  13. added a commit that references this issue on Jul 1, 2026
    bd6aa96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions