Skip to content

Commit d0d8b61

Browse files
author
Daniel Trzesniak
authored
Old develop to Main (#152)
2 parents ea6c6df + 6bb3207 commit d0d8b61

18 files changed

Lines changed: 905 additions & 185 deletions

ifrs17-template/Initialization/InitSystemorphRefDataToMemory.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@
154154
{
155155
"cell_type": "code",
156156
"source": [
157-
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
157+
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().WithTarget(DataSource).ExecuteAsync()"
158158
],
159159
"metadata": {},
160160
"execution_count": 0,
@@ -163,7 +163,7 @@
163163
{
164164
"cell_type": "code",
165165
"source": [
166-
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
166+
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().WithTarget(DataSource).ExecuteAsync()"
167167
],
168168
"metadata": {},
169169
"execution_count": 0,
@@ -172,7 +172,7 @@
172172
{
173173
"cell_type": "code",
174174
"source": [
175-
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
175+
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().WithTarget(DataSource).ExecuteAsync()"
176176
],
177177
"metadata": {},
178178
"execution_count": 0,
@@ -181,7 +181,7 @@
181181
{
182182
"cell_type": "code",
183183
"source": [
184-
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
184+
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().WithTarget(DataSource).ExecuteAsync()"
185185
],
186186
"metadata": {},
187187
"execution_count": 0,

ifrs17-template/Initialization/InitSystemorphToDatabase.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
{
124124
"cell_type": "code",
125125
"source": [
126-
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
126+
"await Import.FromFile(\"../Files/Parameters/YieldCurve.csv\").WithType<YieldCurve>().WithTarget(DataSource).ExecuteAsync()"
127127
],
128128
"metadata": {},
129129
"execution_count": 0,
@@ -132,7 +132,7 @@
132132
{
133133
"cell_type": "code",
134134
"source": [
135-
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
135+
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().WithTarget(DataSource).ExecuteAsync()"
136136
],
137137
"metadata": {},
138138
"execution_count": 0,
@@ -141,7 +141,7 @@
141141
{
142142
"cell_type": "code",
143143
"source": [
144-
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
144+
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().WithTarget(DataSource).ExecuteAsync()"
145145
],
146146
"metadata": {},
147147
"execution_count": 0,
@@ -150,7 +150,7 @@
150150
{
151151
"cell_type": "code",
152152
"source": [
153-
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().SnapshotMode().WithTarget(DataSource).ExecuteAsync()"
153+
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().WithTarget(DataSource).ExecuteAsync()"
154154
],
155155
"metadata": {},
156156
"execution_count": 0,

ifrs17-template/Test/AocStructureTest.ipynb

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,13 @@
9494
{
9595
"cell_type": "code",
9696
"source": [
97-
"public async Task CheckAocStepStructureAsync(IEnumerable<BaseDataRecord> inputVariables, ",
97+
"public async Task<ActivityLog> CheckAocStepStructureAsync(IEnumerable<BaseDataRecord> inputVariables, ",
9898
"\n Dictionary<AocStep,IEnumerable<AocStep>> parentBm, ",
9999
"\n Dictionary<AocStep,AocStep> referenceBm, ",
100100
"\n Dictionary<AocStep,IEnumerable<AocStep>> fullAocBm,",
101101
"\n Dictionary<AocStep,IEnumerable<AocStep>> parentBmCdr = null)",
102102
"\n{",
103+
"\n Activity.Start();",
103104
"\n //Save test input data",
104105
"\n var importFormat = ImportFormats.Cashflow;",
105106
"\n var inputSource = InputSource.Cashflow;",
@@ -232,6 +233,7 @@
232233
"\n }",
233234
"\n ",
234235
"\n if(errors.Any()) ApplicationMessage.Log(Error.Generic, string.Join(\"\\n\", errors));",
236+
"\n return Activity.Finish();",
235237
"\n}",
236238
"\n"
237239
],
@@ -502,7 +504,17 @@
502504
{
503505
"cell_type": "code",
504506
"source": [
505-
"await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm, parentBm_CDR)"
507+
"var activity = await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm, parentBm_CDR);",
508+
"\nactivity"
509+
],
510+
"metadata": {},
511+
"execution_count": 0,
512+
"outputs": []
513+
},
514+
{
515+
"cell_type": "code",
516+
"source": [
517+
"activity.Status.Should().Be(ActivityLogStatus.Succeeded);"
506518
],
507519
"metadata": {},
508520
"execution_count": 0,
@@ -604,7 +616,17 @@
604616
{
605617
"cell_type": "code",
606618
"source": [
607-
"await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm)"
619+
"var activity = await CheckAocStepStructureAsync(inputRawVariables, parentBm, referenceBm, fullAocBm);",
620+
"\nactivity"
621+
],
622+
"metadata": {},
623+
"execution_count": 0,
624+
"outputs": []
625+
},
626+
{
627+
"cell_type": "code",
628+
"source": [
629+
"activity.Status.Should().Be(ActivityLogStatus.Succeeded);"
608630
],
609631
"metadata": {},
610632
"execution_count": 0,
@@ -679,7 +701,17 @@
679701
{
680702
"cell_type": "code",
681703
"source": [
682-
"await CheckAocStepStructureAsync(inputIfrsVariables, parentBm, referenceBm, fullAocBm)"
704+
"var activity = await CheckAocStepStructureAsync(inputIfrsVariables, parentBm, referenceBm, fullAocBm);",
705+
"\nactivity"
706+
],
707+
"metadata": {},
708+
"execution_count": 0,
709+
"outputs": []
710+
},
711+
{
712+
"cell_type": "code",
713+
"source": [
714+
"activity.Status.Should().Be(ActivityLogStatus.Succeeded);"
683715
],
684716
"metadata": {},
685717
"execution_count": 0,

0 commit comments

Comments
 (0)