Skip to content

Improve moments and spectrum_moments docstrings in particulator.py - #1947

Open
slayoo wants to merge 2 commits into
mainfrom
slayoo-patch-9
Open

slayoo wants to merge 2 commits into
mainfrom
slayoo-patch-9

Conversation

@slayoo

@slayoo slayoo commented Sep 11, 2026

Copy link
Copy Markdown
Member

No description provided.

Updated docstrings for clarity and corrected typos in the comments.
@slayoo
slayoo requested a review from Bodzio-2 September 11, 2026 11:56
@codecov

codecov Bot commented Sep 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.47%. Comparing base (2bd8d58) to head (72917a3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1947   +/-   ##
=======================================
  Coverage   87.47%   87.47%           
=======================================
  Files         430      430           
  Lines       11159    11159           
=======================================
  Hits         9761     9761           
  Misses       1398     1398           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread PySDM/particulator.py

Mathematically, the computations correspond to:
$$
M_k = \frac{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Missing a couple of } s and escaping the _ in attr_range

Corrected (checked in markdown and latex):
M_k = \frac{\left.\sum_i\right|_{\text{attr\_range[0]} < x_i < \text{attr\_range[1]} a_i^k m_i w_i^l}}{\left.\sum_i\right|_{\text{attr\_range[0]} < x_i < \text{attr\_range[1]} m_i w_i^l}}

This branch has not been deployed

No deployments
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