Skip to content

docs: initialize the documentation#24

Merged
sbillinge merged 4 commits intoPDF-bl:mainfrom
ycexiao:init-doc
Feb 5, 2026
Merged

docs: initialize the documentation#24
sbillinge merged 4 commits intoPDF-bl:mainfrom
ycexiao:init-doc

Conversation

@ycexiao
Copy link
Contributor

@ycexiao ycexiao commented Feb 4, 2026

What problem does this PR address?

What should the reviewer(s) do?

Please see the rendered documentation:
image

image

@ycexiao ycexiao marked this pull request as ready for review February 4, 2026 23:08
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@ycexiao ycexiao mentioned this pull request Feb 4, 2026
18 tasks
Copy link
Contributor

@sbillinge sbillinge left a comment

Choose a reason for hiding this comment

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

please see inline.

The minimum Q value for PDF calculation. Default is None.
qmax : float, optional
qmax : float
The maximum Q value for PDF calculation. Default is None.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe check these. The default argument may be None but is it not then handled later? So the default rstep ends up as 0.01 or something like that? In those cases, in the docstring you want to put what is useful to the user, not what is useful to hte developer (who can look at the code in any case)

----------
equation_string : str, optional
equation_string : str
The equation string defining the contribution. If None, a default
Copy link
Contributor

Choose a reason for hiding this comment

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

again here, the user won't know what "If None" means so it is better to just say what is created by default. what is written now is a bit vague so I am not able to tell you exactly what to write.

Copy link
Contributor Author

@ycexiao ycexiao left a comment

Choose a reason for hiding this comment

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

@sbillinge, it's ready for review.

equation_string : str
The equation string defining the contribution. If None, a default
equation will be generated based on the number of phases.
e.g.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Examples added.

dx : float, optional
The r step size for PDF calculation. Default is None.
qmin : float
The minimum Q value for PDF calculation. If None, use the value
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Add the description for the default behavior.

Copy link
Contributor

Choose a reason for hiding this comment

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

These are good but please don't say "if None...." As users won't know what it means. Say "Default value..." Or "defaults to..."

Copy link
Contributor

Choose a reason for hiding this comment

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

These are good but please don't say "if None...." As users won't know what it means. Say "Default value..." Or "defaults to..."

@ycexiao
Copy link
Contributor Author

ycexiao commented Feb 5, 2026

@sbillinge, it's ready for review.

@sbillinge sbillinge merged commit d2324b4 into PDF-bl:main Feb 5, 2026
6 checks passed
@ycexiao ycexiao deleted the init-doc branch February 18, 2026 16:38
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.

2 participants