From 18b1f6a52f9ca14f3964df7cb1615bc58e9b908d Mon Sep 17 00:00:00 2001 From: amuolo Date: Fri, 18 Nov 2022 12:43:43 +0100 Subject: [PATCH 1/2] Update Reports.ipynb There was an issue in line 73 with the metadata --- full-ifrs17-template/Report/Reports.ipynb | 28 ++++------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/full-ifrs17-template/Report/Reports.ipynb b/full-ifrs17-template/Report/Reports.ipynb index a6e15bad..a72a342f 100644 --- a/full-ifrs17-template/Report/Reports.ipynb +++ b/full-ifrs17-template/Report/Reports.ipynb @@ -22,10 +22,7 @@ "source": [ "", "\n

Reports

" - ], - "metadata": {}, - "execution_count": 0, - "outputs": [] + ] }, { "cell_type": "markdown", @@ -36,10 +33,7 @@ "\n
For simplicity, we import similar transactional data for all GICs and GRICs. Each *Group of Contracts* produces different figures due to differences in parameters such as *Liability Type*, *Oci type* or *Premium allocation factor* to Contractual Service Margin.", "\n", "\nFollow the instructions below for a guided interaction with the reports." - ], - "metadata": {}, - "execution_count": 0, - "outputs": [] + ] }, { "cell_type": "markdown", @@ -51,19 +45,13 @@ "\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\"" - ], - "metadata": {}, - "execution_count": 0, - "outputs": [] + ] }, { "cell_type": "code", @@ -71,9 +59,6 @@ "Workspace.InitializeFrom(DataSource);", "\nifrs17.Reset(Workspace)" ] - "metadata": {}, - "execution_count": 0, - "outputs": [] }, { "cell_type": "markdown", @@ -86,10 +71,7 @@ "\nFor example one can add \"GroupOfContract\" to separate the contributions of the individual Group of Contracts.", "\n", "\nAggregated values are displayed when the data has a finer granularity than the one selected by the report slice options." - ], - "metadata": {}, - "execution_count": 0, - "outputs": [] + ] }, { "cell_type": "code", From b58322160fe9896cd6ea4cb92560888e2274f4b4 Mon Sep 17 00:00:00 2001 From: amuolo Date: Fri, 18 Nov 2022 12:48:07 +0100 Subject: [PATCH 2/2] Update Reports.ipynb --- full-ifrs17-template/Report/Reports.ipynb | 100 +++++++++++++++++----- 1 file changed, 80 insertions(+), 20 deletions(-) diff --git a/full-ifrs17-template/Report/Reports.ipynb b/full-ifrs17-template/Report/Reports.ipynb index a72a342f..0b333fa6 100644 --- a/full-ifrs17-template/Report/Reports.ipynb +++ b/full-ifrs17-template/Report/Reports.ipynb @@ -22,7 +22,10 @@ "source": [ "", "\n

Reports

" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -33,7 +36,10 @@ "\n
For simplicity, we import similar transactional data for all GICs and GRICs. Each *Group of Contracts* produces different figures due to differences in parameters such as *Liability Type*, *Oci type* or *Premium allocation factor* to Contractual Service Margin.", "\n", "\nFollow the instructions below for a guided interaction with the reports." - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -45,20 +51,29 @@ "\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\"" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "code", "source": [ "Workspace.InitializeFrom(DataSource);", "\nifrs17.Reset(Workspace)" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -71,7 +86,10 @@ "\nFor example one can add \"GroupOfContract\" to separate the contributions of the individual Group of Contracts.", "\n", "\nAggregated values are displayed when the data has a finer granularity than the one selected by the report slice options." - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "code", @@ -83,7 +101,10 @@ "\npv.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\npv.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.2\"),(\"LiabilityType\", \"LIC\") }", "\n(await pv.ToReportAsync) with {Height = 720}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -107,7 +128,10 @@ "\nra.ColumnSlices = new string[]{};//\"GroupOfContract\", \"EconomicBasis\"", "\nra.DataFilter = null;//new [] {(\"GroupOfContract\", \"DT1.2\")};", "\n(await ra.ToReportAsync) with {Height = 800}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -132,7 +156,10 @@ "\nwrittenActual.ColumnSlices = new string[]{};//\"GroupOfContract\"", "\nwrittenActual.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await writtenActual.ToReportAsync) with {Height = 400}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -157,7 +184,10 @@ "\naccrualActual.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\naccrualActual.DataFilter = null; //new [] {(\"EstimateType\", \"AA\")};", "\n(await accrualActual.ToReportAsync) with {Height = 400}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -179,7 +209,10 @@ "\ndeferrableActual.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\ndeferrableActual.DataFilter = null;//new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await deferrableActual.ToReportAsync) with {Height = 400}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -205,7 +238,10 @@ "\nfulfillmentCashflows.ColumnSlices = new string[]{};//\"EstimateType\"", "\nfulfillmentCashflows.DataFilter = null;// new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await fulfillmentCashflows.ToReportAsync) with {Height = 750}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -227,7 +263,10 @@ "\nexperienceAdjustments.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\nexperienceAdjustments.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await experienceAdjustments.ToReportAsync) with {Height = 300}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -250,7 +289,10 @@ "\ntechnicalMargins.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\ntechnicalMargins.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await technicalMargins.ToReportAsync) with {Height = 600}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -274,7 +316,10 @@ "\nallocatedTechnicalMargins.ColumnSlices = new string[]{\"GroupOfContract\", \"EstimateType\"};//\"GroupOfContract\", \"AmountType\"", "\nallocatedTechnicalMargins.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await allocatedTechnicalMargins.ToReportAsync) with {Height = 700}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -296,7 +341,10 @@ "\nactuarialLrc.ColumnSlices = new string[]{};//\"GroupOfContract\"", "\nactuarialLrc.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await actuarialLrc.ToReportAsync) with {Height = 750}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -318,7 +366,10 @@ "\nlrc.ColumnSlices = new string[]{};//\"GroupOfContract\",", "\nlrc.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await lrc.ToReportAsync) with {Height = 250}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -340,7 +391,10 @@ "\nactuarialLic.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\nactuarialLic.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await actuarialLic.ToReportAsync) with {Height = 750}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -362,7 +416,10 @@ "\nlic.ColumnSlices = new string[]{};//\"GroupOfContract\", \"AmountType\"", "\nlic.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await lic.ToReportAsync) with {Height = 250}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "markdown", @@ -386,7 +443,10 @@ "\nfinancialPerformance.ColumnSlices = new string[]{};//\"GroupOfContract\"", "\nfinancialPerformance.DataFilter = null; //new [] {(\"GroupOfContract\", \"DT1.1\")};", "\n(await financialPerformance.ToReportAsync) with { Height = 900, GroupDefaultExpanded = 3}" - ] + ], + "metadata": {}, + "execution_count": 0, + "outputs": [] }, { "cell_type": "code",