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

Writing documentation for the OpenBabel Converter #20

Merged
merged 5 commits into from
Oct 25, 2024
Merged

Conversation

lunamorrow
Copy link
Collaborator

In reference to #3 and building on top of #19. Documentation fully written for the Reader and Parser. Only a scaffold has been added for the Converter - will be expanded on once it is implemented.

@pep8speaks
Copy link

pep8speaks commented Oct 22, 2024

Hello @lunamorrow! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-10-25 00:56:32 UTC

@cbouy
Copy link
Member

cbouy commented Oct 22, 2024

Nice start Luna 💪

Even if the OB docs is not fully functional, I'd add after this line the link to OB so that if/when they fix it any mention of OB classes in your docs will be displayed as a link to users.
The link should be https://openbabel.org/

Also have a look at the lines flagged by the pep8 bot, it seems that you have a few whitespaces at the end of some of the lines, would be nice to clean these up as well.

@@ -1,5 +1,69 @@
"""
Documentation...
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*-
Copy link
Member

Choose a reason for hiding this comment

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

I don't personally think all this boilerplate (copyright, authors, citation...etc.) is necessary in an MDAKit? This is technically a separate package with its own set of authors, license...etc. so should be ok to remove. Same comment for the parser and tests files

mda_openbabel_converter/OpenBabel.py Outdated Show resolved Hide resolved
mda_openbabel_converter/OpenBabel.py Outdated Show resolved Hide resolved
mda_openbabel_converter/OpenBabel.py Outdated Show resolved Hide resolved
mda_openbabel_converter/OpenBabel.py Outdated Show resolved Hide resolved
mda_openbabel_converter/OpenBabel.py Outdated Show resolved Hide resolved
mda_openbabel_converter/OpenBabelParser.py Outdated Show resolved Hide resolved
mda_openbabel_converter/OpenBabelParser.py Outdated Show resolved Hide resolved
Inherits from TopologyReaderBase and converts an OpenBabel OBMol to a
MDAnalysis Topology or adds it to a pre-existing Topology. This parser
does not work in the reverse direction.

For use examples, please see OpenBabel Class documentation
Copy link
Member

Choose a reason for hiding this comment

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

Could you replace OpenBabel with the :class: syntax so it automatically makes a hyperlink in the docs?

mda_openbabel_converter/OpenBabelParser.py Show resolved Hide resolved
@lunamorrow
Copy link
Collaborator Author

@cbouy I have made changes. Could you please review when possible so we can merge? Thanks :)

Copy link
Collaborator

@exs-cbouy exs-cbouy left a comment

Choose a reason for hiding this comment

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

LGTM thanks Luna!

Is there also a plan to update the Getting started page (and add a logo 👀 ) in a future PR?

@lunamorrow
Copy link
Collaborator Author

lunamorrow commented Oct 25, 2024

LGTM thanks Luna!

Is there also a plan to update the Getting started page (and add a logo 👀 ) in a future PR?

Awesome! Yes I will figure out that Getting started page as it is looking a bit bleak currently! Made a new issue for this so I can target it later :)

@lunamorrow lunamorrow merged commit 9c86cad into main Oct 25, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants