Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@@Main,,,,,
ReportingNode,Year,Month,Scenario ,,
ReportingNode,Year,Month,Scenario
CH,2020,12,,,
@@Actual,,,,,
DataNode,AocType,AmountType,EstimateType,AccidentYear,Value
Expand Down
18 changes: 9 additions & 9 deletions ifrs17-template/Test/ScenarioDataImportTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"cell_type": "code",
"source": [
"var argsBestEstimate = new ImportArgs (\"CH\", 2020, 12, Periodicity.Quarterly, null, ImportFormats.Cashflow);",
"\nvar argsScenario = new ImportArgs (\"CH\", 2020, 12, Periodicity.Quarterly, \"Test\", ImportFormats.Cashflow);"
"\nvar argsScenario = new ImportArgs (\"CH\", 2020, 12, Periodicity.Quarterly, \"MTUP10pct\", ImportFormats.Cashflow);"
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -187,7 +187,7 @@
"var cashflowsScenario = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Cashflow",
"\nDataNode,AmountType,EstimateType,AocType,Novelty,AccidentYear,Values0,Values1,Values2,Values3,Values4,Values5,Values6,Values7,Values8,Values9,Values10,Values11,Values12,Values13,Values14,Values15,Values16,Values17,Values18,Values19,Values20,Values21,Values22,Values23",
"\nDT1.1,PR,BE,CL,C,,110,0,0,110,0,0,110,0,0,110,0,0,0,110,0,0,110,0,0,110,0,0,110,0",
Expand Down Expand Up @@ -248,7 +248,7 @@
"var actualsScenario = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Actual",
"\nDataNode,AocType,AmountType,EstimateType,AccidentYear,Value",
"\nDT1.1,CF,NIC,A,,-308\";"
Expand Down Expand Up @@ -315,7 +315,7 @@
"var cashflowsScenarioUpdateCU = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Cashflow",
"\nDataNode,AmountType,EstimateType,AocType,Novelty,AccidentYear,Values0,Values1,Values2,Values3,Values4,Values5,Values6,Values7,Values8,Values9,Values10,Values11,Values12,Values13,Values14,Values15,Values16,Values17,Values18,Values19,Values20,Values21,Values22,Values23",
"\nDT1.1,,CU,CL,C,,-17,-17,-17,-17,-17,-17,-17,-17,-17,-17,-17,-17,-17,-6.5,-6.5,-6.5,-6.5,-6.5,-6.5,-6.5,-6.5,-6.5,-7.5,-8.5\";"
Expand Down Expand Up @@ -375,7 +375,7 @@
"var actualsScenarioUpdateACAAEA = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Actual",
"\nDataNode,AocType,AmountType,EstimateType,AccidentYear,Value",
"\nDT1.1,CF,ACA,A,,-555",
Expand Down Expand Up @@ -444,7 +444,7 @@
"var actualsScenarioNoACAAEA = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Actual",
"\nDataNode,AocType,AmountType,EstimateType,AccidentYear,Value",
"\nDT1.1,CF,ACA,A,,0",
Expand Down Expand Up @@ -500,7 +500,7 @@
"var cashflowsScenarioEqualToBestEstimate = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Cashflow",
"\nDataNode,AmountType,EstimateType,AocType,Novelty,AccidentYear,Values0,Values1,Values2,Values3,Values4,Values5,Values6,Values7,Values8,Values9,Values10,Values11,Values12,Values13,Values14,Values15,Values16,Values17,Values18,Values19,Values20,Values21,Values22,Values23",
"\nDT1.1,PR,BE,CL,C,,100,0,0,100,0,0,100,0,0,100,0,0,0,100,0,0,100,0,0,100,0,0,100,0",
Expand All @@ -518,7 +518,7 @@
"var actualsScenarioEqualToBestEstimate = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Actual",
"\nDataNode,AocType,AmountType,EstimateType,AccidentYear,Value",
"\nDT1.1,CF,ACA,A,,-10",
Expand Down Expand Up @@ -850,7 +850,7 @@
"var cashflowsScenarioNoCU = @\"",
"\n@@Main",
"\nReportingNode,Year,Month,Scenario",
"\nCH,2020,12,Test",
"\nCH,2020,12,MTUP10pct",
"\n@@Cashflow",
"\nDataNode,AmountType,EstimateType,AocType,Novelty,AccidentYear,Values0,Values1,Values2,Values3,Values4,Values5,Values6,Values7,Values8,Values9,Values10,Values11,Values12,Values13,Values14,Values15,Values16,Values17,Values18,Values19,Values20,Values21,Values22,Values23",
"\nDT1.1,PR,BE,CL,C,,110,0,0,110,0,0,110,0,0,110,0,0,0,110,0,0,110,0,0,110,0,0,110,0",
Expand Down
2 changes: 1 addition & 1 deletion ifrs17/Constants/Consts.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@
"cell_type": "code",
"source": [
"public static class Scenarios{",
"\n public static bool EnableScenario = false;",
"\n public static bool EnableScenario = true;",
"\n public const string Default = \"Best Estimate\";",
"\n public const string All = nameof(All);",
"\n public const string Delta = nameof(Delta);",
Expand Down
5 changes: 4 additions & 1 deletion ifrs17/Constants/Validations.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"\n PartitionNotFound, ParsedPartitionNotFound, PartititionNameNotFound, PartitionTypeNotFound,",
"\n // Dimensions",
"\n AmountTypeNotFound, EstimateTypeNotFound, ReportingNodeNotFound, AocTypeMapNotFound, AocTypeNotFound, PortfolioGicNotFound, PortfolioGricNotFound, ",
"\n InvalidAmountTypeEstimateType, MultipleTechnicalMarginOpening,",
"\n InvalidAmountTypeEstimateType, MultipleTechnicalMarginOpening, DimensionNotFound, NoScenarioOpening,",
"\n // Exchange Rate",
"\n ExchangeRateNotFound, ExchangeRateCurrency,",
"\n // Data Note State",
Expand Down Expand Up @@ -137,6 +137,9 @@
"\n (Error.PortfolioGricNotFound , 2) => $\"Portfolio {s[0]} assigned to Group of Reinsurance Contract {s[1]} does not exist.\",",
"\n (Error.InvalidAmountTypeEstimateType , 2) => $\"Invalid combination of EstimateType {s[0]} and AmountType {s[1]}.\",",
"\n (Error.MultipleTechnicalMarginOpening , 1) => $\"Multiple opening for techincal margin are not allowed for DataNode {s[0]}.\",",
"\n (Error.DimensionNotFound , 2) => $\"Column {0} has unknown value {1}.\",",
"\n (Error.NoScenarioOpening , 0) => \"Only Best Estimate is valid Scenario for Openings\",",
"\n ",
"\n // Exchange Rate",
"\n (Error.ExchangeRateNotFound , 2) => $\"Exchange Rate for {s[0]} {s[1]} is not present.\",",
"\n (Error.ExchangeRateCurrency , 1) => $\"{s[0]} does not have any Exchange Rate defined.\", ",
Expand Down
Loading