Skip to content

Feature/generic dist - #494

Merged
jacklovell merged 16 commits into
developmentfrom
feature/generic_dist
Aug 3, 2026
Merged

Feature/generic dist#494
jacklovell merged 16 commits into
developmentfrom
feature/generic_dist

Conversation

@Mateasek

Copy link
Copy Markdown
Member

Adds the GenericDistribution sublcass of DistributionFunction, related to #481.

Allows users to build arbitrary particle distribution functions using the Raysect & Cherab function framework.

@jacklovell jacklovell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good. Can you fix the merge conflict in the changelog and address one small comment in the test file? Good to see that ZeroDistribution is now properly documented too.

Comment thread cherab/core/tests/test_distribution.py Outdated
@Mateasek Mateasek mentioned this pull request Jul 16, 2026
12 tasks
@Mateasek
Mateasek requested a review from jacklovell July 30, 2026 08:07
@Mateasek

Copy link
Copy Markdown
Member Author

I updated the tests to import the constants from cherab. I also fixed one doctring problem and the merge conflict problem. This PR is ready for a new review.

Comment thread cherab/core/tests/test_distribution.py Outdated
Comment thread demos/particle_distribution/generic_distribution.py
Comment thread demos/particle_distribution/generic_distribution.py
@jacklovell
jacklovell merged commit 4516062 into development Aug 3, 2026
12 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.

3 participants