-
Notifications
You must be signed in to change notification settings - Fork 135
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
Addition of SCALE CSAS sequence in scale interface #2155
Addition of SCALE CSAS sequence in scale interface #2155
Conversation
@alfoa FYI Run the "delete_trailing_whitespace.sh" script in your $MOOSE_DIR/scripts directory. |
@wangcj05 fixed |
@ In, None | ||
@ Out, None | ||
""" | ||
self._data['time'] = [0.] |
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.
why time is zero here? If there is only one value for time, why do you need time in your output?
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.
(I thought that if a user uses HistorySets, RAVEN will complain because the pivot parameter (time) is not found. I can remove it if you want)
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.
I think that depends on the CSAS code. Will a time-dependent outputs generated by CSAS code? If so, I think the code interface need to be revised in order to correctly process it. I would suggest to remove the time for now. @alfoa
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.
@wangcj05 removed
…om/idaholab/raven into alfoa/scale_interface_augmentation
@wangcj05 it seems that the plugins tests time out in HERON (>6 hrs testing time) |
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.
I have some comments for you to review. Thanks for your contribution. @alfoa
ravenframework/Distributions.py
Outdated
if self.isFloat: | ||
idx = bisect.bisect(list(self.values), x) | ||
pdfValue = self.mapping[list(self.values)[idx]] | ||
else: | ||
self.raiseAnError(IOError,'Categorical distribution cannot calculate pdf for ' + str(x)) |
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.
@alfoa These lines of code are not clear to me. I think the bisect will work only for sorted list, for example the bisect for unsorted list:
In addition, thanks for the updates on the extension of outcome, they can be either float or string, it seems our code only accept float values, however, I think there are several other places that you also need to make changes, such as "ppf"method, currently it only return float values, "cdf" method still require it to be float, and our manual also need to be updated if we extend it to string value. Could you make those changes?
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.
done
Job Test qsubs sawtooth on ec78e32 : invalidated by @alfoa |
Job Test qsubs sawtooth on ec78e32 : invalidated by @wangcj05 fetch issue |
There is a consistently timeout for test: (524F1/870) Timeout(300.06sec)tests/framework/ROM/TimeSeries/ARMA/ZeroFilter |
Job Test qsubs sawtooth on ec78e32 : invalidated by @alfoa |
Job Test qsubs sawtooth on ec78e32 : invalidated by @wangcj05 fetch issue |
:( |
Job Test qsubs sawtooth on ec78e32 : invalidated by @joshua-cogliati-inl Failed with Device or resource busy |
@wangcj05 this MR doesn't touch anything that should affect the ARMA. ARMA uses Normal and Multivariate distributions that are not impacted on my Categorical distribution changes. |
removed un-used imports
Job Test qsubs sawtooth on 946178f : invalidated by @alfoa |
@wangcj05 can you advice on the issue with ARMI zeroFiltering test? |
Job Test qsubs sawtooth on 946178f : invalidated by @alfoa |
Job Test qsubs sawtooth on 946178f : invalidated by @wangcj05 fetch failed |
try: | ||
float(outcome) | ||
self.isFloat = True | ||
except: | ||
self.isFloat = False | ||
if outcome in self.values: | ||
self.raiseAnError(IOError,'Categorical distribution has identical outcomes') | ||
else: | ||
self.values.add(float(outcome)) | ||
self.values.add(float(outcome) if self.isFloat else outcome) | ||
else: |
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.
@alfoa: This is a general comment, and do not need to address in this PR:
The assumption here is that the users can either provide float or string outcomes. If in the inputs, there are mixed floats and strings, the current implementation can not catch it, and an unexpected crash will happen. I would suggest add a check here to make sure the inputs are either all floats or all string values.
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.
PR looks good, and I have left one general comments for you to consider.
@alfoa: In addition, there is an issue with Mac test which is not related to this PR. |
@alfoa FYI, we have fixed the issue in Mac test machine. For this week, Sawtooth is under maintenance. Please let us know if you want this PR to be merged before that. |
@wangcj05 there is no rush. We can wait next week (we will need this feature ~7/10 days from now). I will also address your additional comment (you are right there can be a very bad crash hehe..I ll address it :) thanks a lot ) |
If we do merge it while sawtooth is down, make sure to manually run: |
@joshua-cogliati-inl Once sawtooth is back and the tests are green, you can merge it. |
Job Test qsubs sawtooth on 946178f : invalidated by @wangcj05 |
Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Closes #2154
What are the significant changes in functionality due to this change request?
Addition of the CSAS sequence in SCALE interface.
Updated manual and added test
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.raven/tests/framework/user_guide
andraven/docs/workshop
) have been changed, the associated documentation must be reviewed and assured the text matches the example.