Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
2adaf2a
copying over
Feb 10, 2023
91227a5
end of week version
Feb 10, 2023
c83cdb8
update
Feb 15, 2023
a2bdb93
Merge remote-tracking branch 'origin/develop' into IntObjRep
Feb 15, 2023
c23cb00
safe state?
Feb 17, 2023
099644f
working version
Feb 17, 2023
24f0093
Some clean up
Feb 17, 2023
7942b86
adding reports
Feb 20, 2023
bce19e2
update
Feb 20, 2023
cd4a647
Merge remote-tracking branch 'origin/develop' into IntObjRep_Andrey
Feb 21, 2023
d1c45db
adding comments and todos
dcolleoni Feb 24, 2023
d8400c9
Allow overwriting filter names. Add Delta and all to the scenarios li…
Feb 27, 2023
9044269
all the filters are separately defined
Feb 27, 2023
0305e3f
incorporate exports. Appropriate changes to the report storage are made
Feb 28, 2023
ba9e698
Merge remote-tracking branch 'origin/develop' into IntObjRep
dcolleoni Mar 1, 2023
eaf2000
filter changes + adapt old api
dcolleoni Mar 1, 2023
1aa1787
for objects: almost works, it is an advanced sketch
Mar 1, 2023
574b230
Merge remote-tracking branch 'origin/IntObjRep_Andrey' into IntObjRep
dcolleoni Mar 3, 2023
9e98c26
merge changes
dcolleoni Mar 3, 2023
5804a76
incorporates parameter report -- for object
Mar 7, 2023
5a80126
stopgap solution for csv and excel reports included.
Mar 9, 2023
0a62d67
Merge remote-tracking branch 'origin/IntObjRep_Andrey' into IntObjRep
dcolleoni Mar 10, 2023
ac29d93
resolve merge conflict
dcolleoni Mar 10, 2023
2e338eb
add filters
dcolleoni Mar 10, 2023
9e95498
reference to disposable workspaces
Mar 10, 2023
545b687
filters, scenario, slices
dcolleoni Mar 10, 2023
e9fc84b
Merge remote-tracking branch 'origin/IntObjRep' into IntObjRep
dcolleoni Mar 10, 2023
d39bd25
Merge branch 'develop' into IntObjRep
dcolleoni Mar 10, 2023
a926604
Reports split to notebook per each report + some modifications
Mar 13, 2023
9dbcb59
Merge branch 'IntObjRep_aux' into IntObjRep
Mar 13, 2023
cd04713
minor fix in parameter mutable reports
Mar 13, 2023
c211027
Typos fixed, pseudo-fix for the threading issue removed and added sli…
Mar 15, 2023
b5117ed
filters fix
Mar 16, 2023
4ba679b
filter fix
dcolleoni Mar 16, 2023
b0a6707
some changes to the reports
Mar 17, 2023
1246417
Merge branch 'IntObjRep_1703' into IntObjRep
Mar 17, 2023
b9bfe95
Merge remote-tracking branch 'origin/develop' into IntObjRep
dcolleoni Mar 17, 2023
e8e6cff
interactive reports
dcolleoni Mar 17, 2023
156253a
solve merge conflicts in tests
dcolleoni Mar 17, 2023
216ae05
fixes a nasty bug that shows up when there is no data.
Mar 17, 2023
d2c0067
Merge branch 'IntObjRep_aux2' into IntObjRep
Mar 17, 2023
928e079
Some comments addressed and moved the types of parameter reports into…
Mar 20, 2023
838aa25
Changed to FirstOrDefault() / LastOrDefault()
Mar 20, 2023
03b215c
syntax simplificattion
Mar 20, 2023
845b1cd
routines renamed
Mar 20, 2023
ae8babf
typo fixed
Mar 20, 2023
7dfaa38
syntax change to Any()
Mar 20, 2023
c27d3cd
move import types and forms into the CE
Mar 20, 2023
613666a
small refactor of specific filter
dcolleoni Mar 20, 2023
b50f6d9
Merge remote-tracking branch 'origin/IntObjRep' into IntObjRep
dcolleoni Mar 20, 2023
d8b45c7
fix failing tests
dcolleoni Mar 20, 2023
4387358
Merge remote-tracking branch 'origin/develop' into IntObjRep
dcolleoni Mar 20, 2023
44d937a
increase memory recommended
dcolleoni Mar 20, 2023
8dd5555
enums moved to classes + routine to query constant attributes of a class
Mar 20, 2023
18d47c9
Merge remote-tracking branch 'origin/IntObjRep' into intobj_Andrey
Mar 20, 2023
3994ca7
bug fixed + produce param reports menu from method rather than enum
Mar 20, 2023
035a899
Merge branch 'intobj_Andrey' into IntObjRep
Mar 20, 2023
5c39529
Added a comment about null reports
Mar 20, 2023
3fe878e
Generalization of the interactive mutable scopes
Mar 20, 2023
2d4512d
Align with the API
Mar 20, 2023
726896b
Move initializations to the LoadData and add exports to excel
Mar 21, 2023
8078349
Initialization to ParameterReportScope
Mar 21, 2023
f4d5e36
Merge remote-tracking branch 'origin/IntObjRep' into IntObjRep
dcolleoni Mar 21, 2023
cb170d3
parameter interactive some refinement
dcolleoni Mar 21, 2023
e836edd
export description
dcolleoni Mar 21, 2023
8e51d6e
report markdown
dcolleoni Mar 21, 2023
69efe32
comment ToExcelInteractive
dcolleoni Mar 21, 2023
3b00166
switch case in the data scope
dcolleoni Mar 22, 2023
915f04c
remove treatment of annual cohort
dcolleoni Mar 22, 2023
6afcbbe
with activity log
Mar 23, 2023
497db1b
remove hardcoded
dcolleoni Mar 23, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions ifrs17-template/Report/InteractiveParameterReport.ipynb
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": []
}
]
}
92 changes: 92 additions & 0 deletions ifrs17-template/Report/InteractiveReports/Accruals.ipynb
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 ifrs17-template/Report/InteractiveReports/Csm-Lc-LoReCo.ipynb
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": []
}
]
}
92 changes: 92 additions & 0 deletions ifrs17-template/Report/InteractiveReports/Deferrals.ipynb
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": []
}
]
}
Loading