Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new topology docs #1078

Closed
2 tasks
orbeckst opened this issue Nov 18, 2016 · 8 comments
Closed
2 tasks

new topology docs #1078

orbeckst opened this issue Nov 18, 2016 · 8 comments

Comments

@orbeckst
Copy link
Member

orbeckst commented Nov 18, 2016

Expected behaviour

The philosophy behind the new topology system #363 should be outlined.

  • docs
  • CHANGELOG

Actual behaviour

At the moment, PR #1077 only removed obviously outdated comments in the docs in topology/__init__.py.

See also TODO in core/topology.py and the structure doc/sphinx/documentation_pages/core_module.rst.

Perhaps it would be worthwhile making this a proper rst file under doc/sphinx instead of cramming all the docs into a __init__.py etc (?).

@orbeckst
Copy link
Member Author

git grep TODO shows a few more

  • package/MDAnalysis/core/topologyattrs.py:# TODO: update docs to property doc
  • package/MDAnalysis/core/topology.py:# TODO Notes:
  • package/doc/sphinx/source/documentation_pages/overview.rst:.. TODO: more about philosophy etc... copy and paste from paper (more than just topology)

@richardjgowers
Copy link
Member

So this definitely needs doing. I wouldn't want to put it in a rst directly as many people might not even know they exist when they start hacking MDA, I'd rather have all the docs in the .py source (which gets slurped into the rst automatically.

@orbeckst
Copy link
Member Author

If you prefer in the py then that's totally fine with me – as long as it is somewhere ;-).

orbeckst added a commit that referenced this issue Nov 19, 2016
- added missing docs for new topology system (#363)
- removed some of the obviously old outdated topology discussions (but  still need proper discussion of #363 changes – see issue #1078 )
- added rst  sphinx stubs for new modules in core
- updated rst docs (added links, reformatted, fixed, found out that
  Napoleon REQUIRES two lines before .. versionchanged/versionadded)
- removed AtomGroup.rst
- restructured core_modules
- fixed Universe and AtomGroup reST references (core changes in #363)

    find . -name '*.rst' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Universe (MDAnalysis.core.universe.Universe)g'
    find . -name '*.py' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Universe)(MDAnalysis.core.universe.Universe)g'
    find . -name '*.rst' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.AtomGroup)(MDAnalysis.core.groups.AtomGroup)g'
    find . -name '*.py' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.AtomGroup)(MDAnalysis.core.groups.AtomGroup)g'

- fixed reST links for other changes in core (#363)
   - AtomGroup.Atom --> groups.Atom
   - AtomGroup.Merge --> universe.Merge
   - AtomGroup.ResidueGroup --> groups.ResidueGroup (no SegmentGroup needed to be fixed, no Residue or Segment found)
   - core.Selection --> core.selection

   find . \( -name '*.py' -o -name '*.rst' \) -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Atom)(MDAnalysis.core.groups.Atom)g'
   find . \( -name '*.py' -o -name '*.rst' \) -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Merge)(MDAnalysis.core.universe.Merge)g'
   find . \( -name '*.py' -o -name '*.rst' \) -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.ResidueGroup)(MDAnalysis.core.universe.ResidueGroup)g'

- many more doc fixes everywhere
   - broken reST links
   - added more cross references and SeeAlso
@orbeckst
Copy link
Member Author

Note: #363 is not even mentioned in CHANGELOG!! Please add as part of fixing this issue (and don't forget to add @dotsdl to the 0.16.0 changes).

@kain88-de
Copy link
Member

Related #1108 to explain what we mean with a unique segment/residue

abiedermann pushed a commit to abiedermann/mdanalysis that referenced this issue Jan 5, 2017
- added missing docs for new topology system (MDAnalysis#363)
- removed some of the obviously old outdated topology discussions (but  still need proper discussion of MDAnalysis#363 changes – see issue MDAnalysis#1078 )
- added rst  sphinx stubs for new modules in core
- updated rst docs (added links, reformatted, fixed, found out that
  Napoleon REQUIRES two lines before .. versionchanged/versionadded)
- removed AtomGroup.rst
- restructured core_modules
- fixed Universe and AtomGroup reST references (core changes in MDAnalysis#363)

    find . -name '*.rst' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Universe (MDAnalysis.core.universe.Universe)g'
    find . -name '*.py' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Universe)(MDAnalysis.core.universe.Universe)g'
    find . -name '*.rst' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.AtomGroup)(MDAnalysis.core.groups.AtomGroup)g'
    find . -name '*.py' -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.AtomGroup)(MDAnalysis.core.groups.AtomGroup)g'

- fixed reST links for other changes in core (MDAnalysis#363)
   - AtomGroup.Atom --> groups.Atom
   - AtomGroup.Merge --> universe.Merge
   - AtomGroup.ResidueGroup --> groups.ResidueGroup (no SegmentGroup needed to be fixed, no Residue or Segment found)
   - core.Selection --> core.selection

   find . \( -name '*.py' -o -name '*.rst' \) -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Atom)(MDAnalysis.core.groups.Atom)g'
   find . \( -name '*.py' -o -name '*.rst' \) -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.Merge)(MDAnalysis.core.universe.Merge)g'
   find . \( -name '*.py' -o -name '*.rst' \) -print0 | xargs -0 perl -wpi~ -e 's(MDAnalysis\.core\.AtomGroup\.ResidueGroup)(MDAnalysis.core.universe.ResidueGroup)g'

- many more doc fixes everywhere
   - broken reST links
   - added more cross references and SeeAlso
@dotsdl
Copy link
Member

dotsdl commented Jan 17, 2017

Working on this this week. PR incoming soon.

@richardjgowers
Copy link
Member

@dotsdl if you want to put up a skeleton of topics it'll make it easier for me to chip in. Or use a project board or something?

@dotsdl
Copy link
Member

dotsdl commented Jan 18, 2017

@richardjgowers I can do that. I'll make a project board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants