Skip to content

Conversation

@lilyminium
Copy link
Member

@lilyminium lilyminium commented Mar 2, 2025

Supersedes #213, just a preliminary first attempt at jotting down what I think people would want to know and some possible gotchas with the new guessing interface. I've mostly tried to avoid duplicating the API docs where possible, except for the attribute guessing where there is some additional info in the user guide (which we can move over to core API docs if it belongs better there).

If there are any other items that should really be added, please suggest them here!


📚 Documentation preview 📚: https://mdanalysisuserguide--409.org.readthedocs.build/en/409/

Copy link
Member

@RMeli RMeli left a comment

Choose a reason for hiding this comment

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

Thanks @lilyminium for adding this documentation. I left some comments, but generally LGTM and it's very informative.

Do I understand correctly that there are currently no guessers other than the default?

Apologies if I din't provide some suggested changes for formatting, but I reviewed on mobile and back quotes are not an easy thing to add.


.. warning::

The default guesser has been created to reproduce pre-v2.8.0 MDAnalysis guessing behaviour as much as possible. **Default behaviours will change in MDAnalysis version 3**, as detailed in deprecation warnings.
Copy link
Member

Choose a reason for hiding this comment

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

Do we have/want to include more details about what "as close as possible" means (i.e. are there small differences and corner cases)?

Copy link
Member Author

Choose a reason for hiding this comment

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

As far as I recall the only real change is the ITPParser now has an extra Elements attribute, which is a bit specific to mention -- I've added a link to the 2.8.0 changelog for interested readers.

Copy link
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.

This looks good to me.

I made some suggestions (mostly in response to @RMeli ). I suggest to merge it, as least as the first pass for the guessers, and get it in. Improvements could be made later.

orbeckst and others added 3 commits March 9, 2025 16:16
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
- address @RMeli comments
- minor grammar fixes
- moved note on radii guessing to explicit rst note
@orbeckst
Copy link
Member

orbeckst commented Mar 9, 2025

@RMeli @lilyminium I made some edits, hopefully addressing most of @RMeli 's comments. Are we ok with merging so that we can make progress on the User Guide?

Copy link
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.

fix whitespace issues

@lilyminium
Copy link
Member Author

Thanks @RMeli and @orbeckst for the review and suggested changes! Correct, at the moment the default guesser is the only one that's implemented. I noticed an ipython block wasn't rendering correctly so will double check after CI runs and then would be happy to merge then.

@RMeli
Copy link
Member

RMeli commented Mar 10, 2025

Thanks. Ping me if you need me to press the merge button. ;)

@lilyminium
Copy link
Member Author

Huzzah it renders -- merging now!

@lilyminium lilyminium merged commit 5b3ae0e into develop Mar 10, 2025
3 of 4 checks passed
@orbeckst orbeckst deleted the add-guesser-docs branch March 10, 2025 19:13
lilyminium added a commit that referenced this pull request Mar 24, 2025
* add some preliminary guesser docs

* fix ipython blocks

* Apply suggestions from code review

Co-authored-by: Rocco Meli <r.meli@bluemail.ch>

* link to Guesser API

* Update guessing.rst

- address @RMeli comments
- minor grammar fixes
- moved note on radii guessing to explicit rst note

* Apply suggestions from code review

fix whitespace to make pre-hook check happy

* fix ipython block

* add changes from review

* add link to changelog

---------

Co-authored-by: Oliver Beckstein <orbeckst@gmail.com>
Co-authored-by: Rocco Meli <r.meli@bluemail.ch>
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.

4 participants