Repository navigation
ww_bounds bug fix in setter and getter - #2275
Conversation
|
Thanks for this fix @eepeterson |
…hape added test for lower ww shape
|
The code looks fine to me, just to check my understanding, is this reshape needed when using WW with multiple energy groups |
|
@shimwell this is essentially just fixing the |
|
Thanks Ethan this might explain why the minimal magic script @pshriwise and myself have been looking into has been struggling with improving the ww on each iteration as we read in the settings.xml after writing it each loop |
pshriwise
left a comment
There was a problem hiding this comment.
Thanks for this fix, @eepeterson!
I think this is fixing a read into Python from XML as opposed to fixing a read into the C++ API. I've had success generating WWs with multiple energy groups on several models with that script as-is. I think our ww gen problem may have more to do with an instantiation of a Numpy array as integers rather than floats -- a change that I have in my branch on this but not that gist I sent you. My bad! |
ww_bounds bug fix in setter and getter
Simple bug fix for a place we were intending to modify an array, but were not. Namely
bounds.reshapedoesn't modify the array in place.