Skip to content

replace .. SeeAlso:: with numpy section#1314

Merged
orbeckst merged 9 commits intodevelopfrom
fix-see-also
Apr 25, 2017
Merged

replace .. SeeAlso:: with numpy section#1314
orbeckst merged 9 commits intodevelopfrom
fix-see-also

Conversation

@kain88-de
Copy link
Copy Markdown
Member

Changes made in this Pull Request:

  • replace .. SeeAlso:: with numpy section

I used the following command to replace all occurrences.

find . -name '*py' -exec sed -rie 's/^(( *).. SeeAlso::( *))/\2See Also\n\2--------\n\2/g' {} \;

Following a comment of @jbarnoud
#1240 (comment)

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

Copy link
Copy Markdown
Contributor

@jbarnoud jbarnoud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am surprised of how often sed did work. But some cases request some more attention.

.. SeeAlso::
See Also
--------

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one needs some further fixing.

See Also
--------

AlignTraj: More efficient method for RMSD-fitting trajectories.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

See Also
--------

:func:`sequence_alignment`, which does not require external
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

--------


:meth:`_get_bonded_hydrogens_dist` and :meth:`_get_bonded_hydrogens_list`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

See Also
--------
:meth:`HydrogenBondAnalysis.generate_table` for processing
the data into a different format.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

--------


* :mod:`MDAnalysis.topology.PDBParser`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

--------


* :mod:`MDAnalysis.topology.ExtendedPDBParser`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

See Also
--------
:mod:`MDAnalysis.topology.tables` for some hard-coded atom
information that is used by functions such as :func:`guess_atom_type` and
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

See Also
--------
:func:`guess_atom_element` and
:mod:`MDAnalysis.topology.tables`
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

See Also
--------
:func:`guess_atom_type` and
:mod:`MDAnalysis.topology.tables` (where the data are stored)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be unindented

@kain88-de
Copy link
Copy Markdown
Member Author

I am surprised of how often sed did work.

Yeah it's a super neat tool. But one line changes it has become my go to tool.

Copy link
Copy Markdown
Member Author

@kain88-de kain88-de left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After checking every file that has been changed I still see some rendering issues.

.. SeeAlso:: Table :ref:`Default atom names for hydrogen bonding analysis`
See Also
--------
Table :ref:`Default atom names for hydrogen bonding analysis`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't get this reference to render a link correctly.

For trajectory formats :class:`~DCD.DCDReader`, :class:`~XTC.XTCReader`,
:class:`~TRR.TRRReader`, :class:`~XYZ.XYZReader`. For single frame formats:
:class:`~CRD.CRDReader`, and :class:`~PDB.PDBReader`,
:class:`~GRO.GROReader`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The classes aren't linked.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be that the tilde isn't expanded correctly?

.. SeeAlso:: :func:`anyopen`
See Also
--------
:func:`anyopen`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this docstring rendered at all in the docs.

.. SeeAlso:: :class:`MDAnalysis.coordinates.PDB.ExtendedPDBReader`
See Also
--------
:class:`MDAnalysis.coordinates.PDB.ExtendedPDBReader`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also doesn't link correctly

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixed now

.. SeeAlso:: Table :ref:`Default atom names for hydrogen bonding analysis`
See Also
--------
Table :ref:`Default heavy atom names for CHARMM27 force field.`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get everything to render with links except for this reference. Anyone a idea?

@kain88-de
Copy link
Copy Markdown
Member Author

OK I think I fixed all issues. This is good for review from my side.

Copy link
Copy Markdown
Member

@orbeckst orbeckst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!!

Context manager to open a compressed (bzip2, gzip) or plain file
(uses :func:`anyopen`).

.. autofunction:: openany
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the context manager decorator preserve function docs nowadays (or is sphinx smarter)? I remember I wrote it explicitly because the decorator had mangled the docs.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh haven't checked

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Context manager here is never used as a decorator. It can't mangle any docs.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I look at the code I see
@contextmanager
def openany():

(Sorry difficult to link to code on mobile gh interface.)

If the docs look fine then it's not a problem, of course.

@orbeckst orbeckst mentioned this pull request Apr 21, 2017
@kain88-de
Copy link
Copy Markdown
Member Author

@jbarnoud any more changes you would like?

@jbarnoud
Copy link
Copy Markdown
Contributor

I am at a conference. Sorry, I do not have the time to look. What I noticed seems fixed, I approve the PR as I have no reason to block it anymore, but I did not review it.

@orbeckst orbeckst merged commit 68e4c17 into develop Apr 25, 2017
@orbeckst orbeckst deleted the fix-see-also branch April 25, 2017 16:17
@orbeckst
Copy link
Copy Markdown
Member

One of the travis runs just times out after passing the tests: https://travis-ci.org/MDAnalysis/mdanalysis/jobs/225668887

Ran 4504 tests in 1042.470s

OK (KNOWNFAIL=4, SKIP=3)

No output has been received in the last 10m0s, this potentially indicates a stalled build or something wrong with the build itself.

Check the details on how to adjust your build configuration on: https://docs.travis-ci.com/user/common-build-problems/#Build-times-out-because-no-output-was-received

The build has been terminated

I am now restarting a second time but if anyone else has any insights...

@kain88-de
Copy link
Copy Markdown
Member Author

This happens a lot recently. Just restart the build.

@orbeckst
Copy link
Copy Markdown
Member

I did and seemed to work on the third attempt.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants