-
Notifications
You must be signed in to change notification settings - Fork 9
Int obj rep #217
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
Merged
Int obj rep #217
Changes from all commits
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
2adaf2a
copying over
91227a5
end of week version
c83cdb8
update
a2bdb93
Merge remote-tracking branch 'origin/develop' into IntObjRep
c23cb00
safe state?
099644f
working version
24f0093
Some clean up
7942b86
adding reports
bce19e2
update
cd4a647
Merge remote-tracking branch 'origin/develop' into IntObjRep_Andrey
d1c45db
adding comments and todos
dcolleoni d8400c9
Allow overwriting filter names. Add Delta and all to the scenarios li…
9044269
all the filters are separately defined
0305e3f
incorporate exports. Appropriate changes to the report storage are made
ba9e698
Merge remote-tracking branch 'origin/develop' into IntObjRep
dcolleoni eaf2000
filter changes + adapt old api
dcolleoni 1aa1787
for objects: almost works, it is an advanced sketch
574b230
Merge remote-tracking branch 'origin/IntObjRep_Andrey' into IntObjRep
dcolleoni 9e98c26
merge changes
dcolleoni 5804a76
incorporates parameter report -- for object
5a80126
stopgap solution for csv and excel reports included.
0a62d67
Merge remote-tracking branch 'origin/IntObjRep_Andrey' into IntObjRep
dcolleoni ac29d93
resolve merge conflict
dcolleoni 2e338eb
add filters
dcolleoni 9e95498
reference to disposable workspaces
545b687
filters, scenario, slices
dcolleoni e9fc84b
Merge remote-tracking branch 'origin/IntObjRep' into IntObjRep
dcolleoni d39bd25
Merge branch 'develop' into IntObjRep
dcolleoni a926604
Reports split to notebook per each report + some modifications
9dbcb59
Merge branch 'IntObjRep_aux' into IntObjRep
cd04713
minor fix in parameter mutable reports
c211027
Typos fixed, pseudo-fix for the threading issue removed and added sli…
b5117ed
filters fix
4ba679b
filter fix
dcolleoni b0a6707
some changes to the reports
1246417
Merge branch 'IntObjRep_1703' into IntObjRep
b9bfe95
Merge remote-tracking branch 'origin/develop' into IntObjRep
dcolleoni e8e6cff
interactive reports
dcolleoni 156253a
solve merge conflicts in tests
dcolleoni 216ae05
fixes a nasty bug that shows up when there is no data.
d2c0067
Merge branch 'IntObjRep_aux2' into IntObjRep
928e079
Some comments addressed and moved the types of parameter reports into…
838aa25
Changed to FirstOrDefault() / LastOrDefault()
03b215c
syntax simplificattion
845b1cd
routines renamed
ae8babf
typo fixed
7dfaa38
syntax change to Any()
c27d3cd
move import types and forms into the CE
613666a
small refactor of specific filter
dcolleoni b50f6d9
Merge remote-tracking branch 'origin/IntObjRep' into IntObjRep
dcolleoni d8b45c7
fix failing tests
dcolleoni 4387358
Merge remote-tracking branch 'origin/develop' into IntObjRep
dcolleoni 44d937a
increase memory recommended
dcolleoni 8dd5555
enums moved to classes + routine to query constant attributes of a class
18d47c9
Merge remote-tracking branch 'origin/IntObjRep' into intobj_Andrey
3994ca7
bug fixed + produce param reports menu from method rather than enum
035a899
Merge branch 'intobj_Andrey' into IntObjRep
5c39529
Added a comment about null reports
3fe878e
Generalization of the interactive mutable scopes
2d4512d
Align with the API
726896b
Move initializations to the LoadData and add exports to excel
8078349
Initialization to ParameterReportScope
f4d5e36
Merge remote-tracking branch 'origin/IntObjRep' into IntObjRep
dcolleoni cb170d3
parameter interactive some refinement
dcolleoni e836edd
export description
dcolleoni 8e51d6e
report markdown
dcolleoni 69efe32
comment ToExcelInteractive
dcolleoni 3b00166
switch case in the data scope
dcolleoni 915f04c
remove treatment of annual cohort
dcolleoni 6afcbbe
with activity log
497db1b
remove hardcoded
dcolleoni File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
106 changes: 106 additions & 0 deletions
106
ifrs17-template/Report/InteractiveParameterReport.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "SB2KH3IeJ0ayzI-af7eReA", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "<a id='report-production'></a>", | ||
| "\n<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Interactive Parameter Reports</span> </p>" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "This notebook is the interactive version of [Parameter Reports](./ParameterReports). For demonstration purposes we import here data for some *Group of Insurance Contract* (GIC) and *Group of Reinsurance Contract* (GRIC) - the import is triggered in the [Set up data and configuration](#set-up-data-and-configuration) section.", | ||
| "\n<br> The imported data set consists of cash flows, actuals, and parameters.", | ||
| "\n<br> Input files can be found in the **File** directory. You are invited to change them or upload your own or add new data in the [CloseImportTemplate](../Import/CloseImportTemplate) notebook. ", | ||
| "\n", | ||
| "\nIn this notebook we show the parameters (provided to the calculation engine as inputs) used to performe the calculation of the reports shown in [Reports](Reports) notebook.", | ||
| "\n", | ||
| "\nSelect from the dropdown which *Report Type* you are interested in and the report adjust to the desired selection. " | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Set up data and configuration", | ||
| "\n", | ||
| "\nChoose to run the Reports notebook either with the set of Systemorph data in memory or with the data present in the Database: ", | ||
| "\n- #!eval-notebook \"../Database/Configure\" : connects to a physical Database", | ||
| "\n- #!eval-notebook \"../Import/CloseImportTemplate\" : uses the in-memory set up", | ||
| "\n", | ||
| "\nWe use here the in-memory set up." | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "#!eval-notebook \"../Import/CloseImportTemplate\"", | ||
| "\nWorkspace.InitializeFrom(DataSource);" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "parameterInteractive.Reset(Workspace);" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Interactive view" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "parameterInteractive.GetFormsEntity<ParameterReportScope>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "parameterInteractive.GetReport<ParameterReportScope>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "oKYWmrRFfU2e9YTd1Vj9iw", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Accruals</span> </p>" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Load Data" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "#!import \"LoadData\"" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Interactive report and export" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "ifrs17Interactive.GetFormsEntity<AccrualReport>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "ifrs17Interactive.GetReport<AccrualReport>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "Export the report to excel format using the next cell. Change the file name using the input string and disable appending UTC export time by chaging true to false. " | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "await ifrs17Interactive.ExportToExcelAsync<PvReport>(\"Accruals\", addDateTime : true)" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } | ||
92 changes: 92 additions & 0 deletions
92
ifrs17-template/Report/InteractiveReports/Csm-Lc-LoReCo.ipynb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "YfxenPHy6ky0dq9nEONroA", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Contractual Service Margin / Loss Component / Loss Recovery Component</span> </p>" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Load Data" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "#!import \"LoadData\"" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Interactive report and export" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "ifrs17Interactive.GetFormsEntity<CsmReport>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "ifrs17Interactive.GetReport<CsmReport>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "Export the report to excel format using the next cell. Change the file name using the input string and disable appending UTC export time by chaging true to false. " | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "await ifrs17Interactive.ExportToExcelAsync<PvReport>(\"CsmLcLorecoReport\", addDateTime : true)" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| { | ||
| "metadata": { | ||
| "authors": [], | ||
| "id": "T4bL4ggXtUu8qf7OrBY7lg", | ||
| "kernelspec": { | ||
| "display_name": "Formula Framework", | ||
| "language": "C#", | ||
| "name": "C#" | ||
| }, | ||
| "language_info": { | ||
| "file_extension": ".cs", | ||
| "mimetype": "text/plain", | ||
| "name": "C#" | ||
| } | ||
| }, | ||
| "nbformat": 4, | ||
| "nbformat_minor": 5, | ||
| "cells": [ | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Deferrals</span> </p>" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Load Data" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "#!import \"LoadData\"" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "# Interactive report and export" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "ifrs17Interactive.GetFormsEntity<DeferralReport>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "ifrs17Interactive.GetReport<DeferralReport>()" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "markdown", | ||
| "source": [ | ||
| "Export the report to excel format using the next cell. Change the file name using the input string and disable appending UTC export time by chaging true to false. " | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| }, | ||
| { | ||
| "cell_type": "code", | ||
| "source": [ | ||
| "await ifrs17Interactive.ExportToExcelAsync<PvReport>(\"DeferralsReport\", addDateTime : true)" | ||
| ], | ||
| "metadata": {}, | ||
| "execution_count": 0, | ||
| "outputs": [] | ||
| } | ||
| ] | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.