8000 Documentation Follow Up by CSSFrancis · Pull Request #957 · pyxem/pyxem · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Documentation Follow Up #957

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

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

CSSFrancis
Copy link
Member

name: Documentation Follow Up
about: Cleaning up warnings in documentation Build


Checklist

  • Updated CHANGELOG.md
  • Marked as finished

@coveralls
Copy link
coveralls commented Oct 27, 2023

Coverage Status

coverage: 96.059%. remained the same
when pulling 9d12c39 on CSSFrancis:documentation_follow_up
into dd2cfe3 on pyxem:main.

@hakonanes
Copy link
Member

Reviewing...

Copy link
Member
@hakonanes hakonanes left a comment

Choose a reason for hiding this comment< 10000 /h3>

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

Thank you for this follow-up. I have a few comments regarding reST syntax!


Parameters
----------
roi: :obj:`hyperspy.roi.BaseInteractiveROI`
roi: :obj:`~hyperspy.roi.BaseInteractiveROI`
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 think we need the reST Sphinx syntax here?

Suggested change
roi: :obj:`~hyperspy.roi.BaseInteractiveROI`
roi : hyperspy.roi.BaseInteractiveROI

Copy link
Member Author

Choose a reason for hiding this comment

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

I kind of like the explicit references. I think if the class isn't imported it seems like the Sphinx mapping doesn't work At least I think that is the case. Maybe if we add in type checking we could simplify things but I'd rather have things consistent for now.

----------
s: Signal2D
s: :class:`~hyperspy.api.signals.Signal2D`
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
s: :class:`~hyperspy.api.signals.Signal2D`
s : hyperspy.api.signals.Signal2D

function. Default is 10
**kwargs:
Passed to the :meth:`get_time_series` function
kwargs:
Copy link
Member

Choose a reason for hiding this comment

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

I find **kwargs renders better in the docs than just kwargs. You can drop the colon here.

@CSSFrancis CSSFrancis mentioned this pull request Nov 5, 2023
10 tasks
@CSSFrancis CSSFrancis requested a review from hakonanes November 13, 2023 15:42
@CSSFrancis CSSFrancis merged commit c370152 into pyxem:main Nov 14, 2023
@CSSFrancis CSSFrancis mentioned this pull request Nov 14, 2023
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.

3 participants
0