-
Notifications
You must be signed in to change notification settings - Fork 137
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
Updated XSCreator.py for PHISICS interface #810
Conversation
The scattering cross section was not accepted as a variable (although the RAVEN manual was stating so, and PHISICS can generate scaling factors relative to the scattering XS). The scattering XS variable was simply missing in the interface.
The nested loops were removed to accelerate the routine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some few modifications required
@@ -152,7 +152,7 @@ def fileReconstruction(self,deconstructedDict): | |||
Converts the formatted dictionary -> {'XS|FUEL1|U235|FISSION|1':1.30, 'XS|FUEL2|U238|ABS|2':4.69} | |||
into a dictionary of dictionaries that has the format -> {'XS':{'FUEL1':{'U235':{'FISSION':{'1':1.30}}}}, 'FUEL2':{'U238':{'ABS':{'2':4.69}}}} | |||
@ In, deconstructedDict, dictionary, dictionary of perturbed variables | |||
@ Out, leanReconstructedDict, dict, nested dictionary of perturbed variables | |||
@ Out, leanReconstructedDict, dictionary, nested dictionary of perturbed variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dict
@@ -134,7 +134,7 @@ def formatXS(self,reaction): | |||
else: | |||
raise IOError('the type of cross section '+reaction+' cannot be processed. Refer to manual for available reactions.') | |||
return reactionTemplated | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove trailing spaces...
run the script ./developer_tools/delete_trailing_whitespace.sh framework
for typeKey, value in deconstructedDict.iteritems(): | ||
if typeKey in pertDictSet: | ||
keyWords = typeKey.split('|') | ||
reconstructedDict[keyWords[0]][keyWords[1]][keyWords[2]][keyWords[3]][keyWords[4]][keyWords[5]][keyWords[6]] = value | ||
leanReconstructedDict = self.cleanEmpty(reconstructedDict) | ||
return leanReconstructedDict | ||
return leanReconstructedDict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line
@wangcj05 Since i added some modifications, I can not review this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just one comment
@@ -129,6 +129,8 @@ def formatXS(self,reaction): | |||
reactionTemplated = 'nalphaXS' | |||
elif reaction == 'NGXS': | |||
reactionTemplated = 'ngXS' | |||
elif reaction == 'SCATTERINGXS': | |||
reactionTemplated = 'ScatteringXS' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test case to cover this modification?
In addition, why all these commits are showing in this PR? |
@aalfonsi should we close this PR? |
yes lets close it. |
Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
#611
What are the significant changes in functionality due to this change request?
Acceleration of parsing input
For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.
<internalParallel>
to True.