Skip to content
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

Merged
merged 16 commits into from
Sep 18, 2023
Merged

Exporting AOP, EOP curves #9016

merged 16 commits into from
Sep 18, 2023

Conversation

micheles
Copy link
Contributor

Part of #8971

@micheles micheles changed the title Exportng AOP, EOP curves Exporting AOP, EOP curves Sep 18, 2023
@micheles micheles merged commit 408d07d into master Sep 18, 2023
5 checks passed
@micheles micheles deleted the years-store branch September 18, 2023 08:24
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':
Copy link
Member

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

Copy link
Contributor Author

@micheles micheles Sep 19, 2023

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.

Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants