Skip to content

Enable doctest for io.fits narrative docs #6010

Closed

Description

@bsipocz

doctest-skip is used quite widely in the io.fits docs (e.g. in docs/io/fits/usage/table.rst). We need to aim to make most of the snippets tested, ideally it would be done easily with the addition of a few small fits files, either to this repo or to data.astropy.org

Activity

  1. pllim commented on May 5, 2017

    @pllim
    Member

    That is a good idea. We have had reports before that the examples don't actually work when someone runs them (I think those were fixed though).

  2. bsipocz commented on May 5, 2017

    @bsipocz
    MemberAuthor

    @pllim - Yes, #6009 urged me to open this issue, as that PR is not a real solution for the problem. Let alone most of the PRs opened through the docs GH integration are generating more work than they solve when opened to the wrong branch.

  3. pllim commented on May 8, 2017

    @pllim
    Member

    Update: I spoke to @jhunkeler and he might take this on when his other projects calm down a little in a few weeks. Of course, this does not prevent anyone from contributing. First come, first serve.

  4. bsipocz commented on May 8, 2017

    @bsipocz
    MemberAuthor

    @pllim - Excellent!

  5. saimn commented on May 9, 2017

    @saimn
    Contributor

    Good idea, but the issue is that for many examples the FITS files are not available. So one need to change the examples to use other FITS files, possibly from astropy/io/fits/tests/data. (For docs/io/fits/usage/table.rst it was even worse before ddd3a4f ;), the remaining examples could be easily adapted).

  6. pllim commented on May 9, 2017

    @pllim
    Member

    the issue is that for many examples the FITS files are not available

    Yes, either use existing local data or host the new data at the remote data server and mark it as remote doctest.

  7. bsipocz commented on May 9, 2017

    @bsipocz
    MemberAuthor

    @saimn - Yes, exactly that's the plan. Most of those examples are using dummy small fits files, so they could live in this repo, while others could live at data.astropy.org with the rest of the files.

  8. saimn commented on Oct 7, 2017

    @saimn
    Contributor

    Fixed by #6664 , thanks @MSeifert04 🎉

  9. MSeifert04 commented on Oct 7, 2017

    @MSeifert04
    Contributor

    The verify documentation is still "doctest-skip" because I didn't understand some of it (and several parts didn't work the way the documentation stated) and Warnings aren't checked by the doctests.

    So I'm not sure if this issue is fully adressed.

  10. saimn commented on Oct 7, 2017

    @saimn
    Contributor

    Ok, I thought you skipped some examples because testing warnings does not work (?). Not sure if it's realistic to have all examples tested, that's why I closed the issue, but having examples that does not work as documented is more problematic. Maybe it deserves a specific issue ?

  11. MSeifert04 commented on Oct 7, 2017

    @MSeifert04
    Contributor

    @saimn Yes, a new issue would be fine. I planned to work some more on that this weekend but it shouldn't be forgotten if I don't have time to finish it.

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions