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
6 changes: 3 additions & 3 deletions PresentValueSeries/InitializeData.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"\n .WithType<ValuationApproach>() .WithType<RiskDriver>() .WithType<ProjectionConfiguration>() ",
"\n .WithType<ExchangeRate>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -70,7 +70,7 @@
"await Import.FromFile(\"Dimensions.xlsx\")",
"\n .WithFormat(ImportFormats.AocConfiguration)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -82,7 +82,7 @@
"await Import.FromFile(\"DataNodes.xlsx\")",
"\n .WithFormat(\"DataNode\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand Down
4 changes: 2 additions & 2 deletions PresentValueSeries/PresentValue - Episode 2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"await Import.FromFile(\"YieldCurve.xlsx\")",
"\n .WithType<YieldCurve>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -183,7 +183,7 @@
"await Import.FromFile(\"Cashflows.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand Down
14 changes: 7 additions & 7 deletions PresentValueSeries/PresentValue - Episode 3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
"await Import.FromFile(\"DataNodes_CH.xlsx\")",
"\n .WithFormat(\"DataNode\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -183,7 +183,7 @@
"await Import.FromFile(\"DataNodes_DE.xlsx\")",
"\n .WithFormat(\"DataNode\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -195,7 +195,7 @@
"await Import.FromFile(\"YieldCurve.xlsx\")",
"\n .WithType<YieldCurve>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -207,7 +207,7 @@
"await Import.FromFile(\"Cashflows.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -219,7 +219,7 @@
"await Import.FromFile(\"CF_CH_2021_12.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -231,7 +231,7 @@
"await Import.FromFile(\"CF_DE_2021_12.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -243,7 +243,7 @@
"await Import.FromFile(\"CF_DE_2022_12.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
"\n .ExecuteAsync()"
],
"metadata": {},
"execution_count": 0,
Expand Down
11 changes: 6 additions & 5 deletions ifrs17/Import/Importers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1365,17 +1365,18 @@
"\n if(Activity.HasErrors()) return Activity.Finish();",
"\n await DataNodeFactoryAsync(dataSet, ImportFormats.SimpleValue, args);",
"\n if(Activity.HasErrors()) return Activity.Finish();",
"\n ",
"\n",
"\n Guid partitionId = new Guid();",
"\n var workspace = Workspace.CreateNew();",
"\n var parsingLog = await ParseSimpleValueToWorkspaceAsync(dataSet, args, partitionId, workspace);",
"\n if(parsingLog.Errors.Any()) return Activity.Finish().Merge(parsingLog);",
"\n ",
"\n",
"\n workspace.Query<IfrsVariable>().Select(v => new {v.DataNode, v.AccidentYear}).Distinct();",
"\n ",
"\n await workspace.CommitToAsync<IfrsVariable,PartitionByReportingNodeAndPeriod>(DataSource, partitionId, snapshot : true,",
"\n filter : x => workspace.Query<IfrsVariable>().Select(v => v.DataNode).Distinct().Contains(x.DataNode));",
"\n",
"\n var targetDataNodes = workspace.Query<IfrsVariable>().Select(v => v.DataNode).Distinct().ToArray();",
"\n await workspace.CommitToAsync<IfrsVariable,PartitionByReportingNodeAndPeriod>(DataSource, partitionId, snapshot : true,",
"\n filter : x => targetDataNodes.Contains(x.DataNode));",
"\n ",
"\n return Activity.Finish().Merge(parsingLog);",
"\n});"
],
Expand Down