-
Notifications
You must be signed in to change notification settings - Fork 273
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
Exporting AOP, EOP curves #9016
Conversation
…e the desired items among ep, aep and oep
dic['oep'] = losses_by_period(oep, periods, ne, self.eff_time) | ||
dic = {kind: losses_by_period(losses, periods, ne, self.eff_time)} | ||
# NOTE: assuming 'ep' mandatory and 'oep' and 'aep' optional | ||
if len(years) and kind == 'loss': |
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.
Perhaps it would be better to change this into
if len(years) > 1 and kind == 'loss'
in order to avoid computing loss_oep
and loss_aep
when they are equal to loss
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.
No, it would be confusing to the user because by changing the effective time sometime she would get some curves and sometimes not.
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.
Ok, so by default all curves will be computed, unless otherwise specified in the ini.
Part of #8971