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

Allowing WeightWindowGenerator to be fully made via constructor #2686

Conversation

shimwell
Copy link
Member

@shimwell shimwell commented Sep 6, 2023

Description

Following on the theme of making the python classes fully specified (e.g #2619 ) via the constructor this PR attempts to convert the WeightWindowGenerator class so that it can be made fully from the constructor.

only catch is that the self._update_parameters must be set before the self.method as the self.method setter accesses this attribute.

Checklist

  • I have performed a self-review of my own code
  • I have followed the style guidelines for Python source files (if applicable)

Copy link
Contributor

@paulromano paulromano left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @shimwell!

@paulromano paulromano enabled auto-merge (squash) September 13, 2023 18:12
@paulromano paulromano merged commit c8c5afa into openmc-dev:develop Sep 14, 2023
18 checks passed
stchaker pushed a commit to stchaker/openmc that referenced this pull request Oct 25, 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.

2 participants