Skip to content
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

Add equal_weights option to resample, fix Genesis4 bug #51

Merged
merged 1 commit into from
Nov 15, 2023

Conversation

ChristopherMayes
Copy link
Owner

Previously write_genesis4_distribution was incorrectly resampling with weights for export. Genesis4 requires equal weights for this type of distribution. This PR:

  • adds equal_weights option to ParticleGroup.resample, defaulting to False.
  • Corrects write_genesis4_distribution to use this.

@ChristopherMayes ChristopherMayes merged commit 571f7e3 into master Nov 15, 2023
3 checks passed
@ChristopherMayes ChristopherMayes deleted the fix_genesis4_equal_weights_write branch October 26, 2024 17:07
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.

1 participant