-
Notifications
You must be signed in to change notification settings - Fork 90
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
Adding ParameterCollection.where for conditional parameter iteration #1899
Merged
Commits on Sep 20, 2024
-
Provide ParameterCollection.where for better iteration of parameters
Allows selective iteration of parameters that meet, by their definition not their value, meet a certain condition. This would be useful to iterate over all parameters on a ``Block`` that are relevant for neutronics calculations with ```python for p in block.p.where(lambda pd: "neutronics" in pd.categories): ... ``` The argument is a function that should return true for a given parameter and can be complicated ```python block.p.where( lambda pd: ( pd.atLocation(ParamLocation.EDGES) or pd.atLocation(ParamLocation.CORNERS) ) ) ``` Closes #1898
Configuration menu - View commit details
-
Copy full SHA for 4483527 - Browse repository at this point
Copy the full SHA 4483527View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0c5f542 - Browse repository at this point
Copy the full SHA 0c5f542View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6fc7204 - Browse repository at this point
Copy the full SHA 6fc7204View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3bb13f7 - Browse repository at this point
Copy the full SHA 3bb13f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 83e126f - Browse repository at this point
Copy the full SHA 83e126fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18e5219 - Browse repository at this point
Copy the full SHA 18e5219View commit details -
Configuration menu - View commit details
-
Copy full SHA for e335f07 - Browse repository at this point
Copy the full SHA e335f07View commit details
Commits on Sep 21, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 6efe6e1 - Browse repository at this point
Copy the full SHA 6efe6e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9493ef6 - Browse repository at this point
Copy the full SHA 9493ef6View commit details
Commits on Sep 23, 2024
-
Update armi/reactor/tests/test_parameters.py
Co-authored-by: John Stilley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 81b55ee - Browse repository at this point
Copy the full SHA 81b55eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for f822d37 - Browse repository at this point
Copy the full SHA f822d37View commit details
Commits on Sep 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 96f1962 - Browse repository at this point
Copy the full SHA 96f1962View commit details -
Merge branch 'main' into drewj/iter-params/1898
* main: Fixing a problem with the latest release of h5py (#1907)
Configuration menu - View commit details
-
Copy full SHA for f9e1047 - Browse repository at this point
Copy the full SHA f9e1047View commit details -
Co-authored-by: John Stilley <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1f090d1 - Browse repository at this point
Copy the full SHA 1f090d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for f835c95 - Browse repository at this point
Copy the full SHA f835c95View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.