Replies: 3 comments 3 replies
-
I also see in
So I guess there is some redundant code in there forcing the default to look only for fuel assemblies. But funny that the comment in the code acknowledges the question that I pose above. |
Beta Was this translation helpful? Give feedback.
-
Well we know that the method is not being used within the code itself, based on our discussion the other day. So it must just be used by users in their custom shuffle logic scripts. In that case, I would imagine that if we change the default, some people will need to update their custom shuffle logic to avoid accidentally getting things like control rods in their shuffles. |
Beta Was this translation helpful? Give feedback.
-
Hi @keckler, as a part of our verification work for the fuel management there will be some proposed changes to improve this method. The biggest issue now is that this method is untested and it also has way too many arguments. I believe that this was written at a time when it was more difficult to just search for an assembly or set of assemblies that contain certain attributes or parameters. In today's ARMI framework, it should be pretty easy just to use a list comprehension or to pass in some "filter" function that can be user defined. |
Beta Was this translation helpful? Give feedback.
-
The
FuelHandler
class has a powerfulfindAssembly
method which is widely used to associate particular assemblies with a user's shuffling scheme. In the docstring for this method, it states:If you look into the
_getAssembliesInRings
method which is actually used under the hood byfindAssembly
to pull up a list of all the assemblies, you'll see that the default screening for only fuel is actually applied in the signature there:My question is, why should this method default to finding only fuel assemblies? It is not unheard of for other things to be shuffled (control assemblies, reflectors, etc.). Forcing the user to specify a flag using the
typeSpec
parameter offindAssembly
when they want to shuffle anything other than fuel only makesfindAssembly
less powerful. I really don't see a good reason for this default, but I'm wondering if anybody else does.Beta Was this translation helpful? Give feedback.
All reactions