Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ce898e1
Infrastructure for log writing
Dec 28, 2022
a27ec58
Finally a scaffoldable model
Dec 29, 2022
7e0b208
Moved ExecuteWithStore into the CalculationEngine importers
Dec 29, 2022
ef0fba3
Move the classes and the routines to a separate notebook. Some minor …
Jan 3, 2023
fb6b5ad
Remove obsolete parts from the importers notebook
Jan 3, 2023
8098443
Thoughts on API
Jan 3, 2023
b0bb67b
Reshaped, allowed for writeup for any type of import.
Jan 4, 2023
d50a008
typo fixed and castings
Jan 5, 2023
9d2a860
move all the casts where they belong
Jan 5, 2023
6d266a2
Throws an exception if the Import Options does not belong to the corr…
Jan 5, 2023
36421cc
Add trivial constructors. Still proudly refuses to scaffold :(
Jan 5, 2023
c51d497
multiple bugs fixed. Not yet sure, if it is the final version, but ge…
Jan 6, 2023
7414ae1
dealing with the exceptions if the memory stream cannot be produced (…
Jan 6, 2023
7e35f34
versions update
Jan 6, 2023
80a8e78
Merge remote-tracking branch 'origin/develop' into 137_ActivityLogs
Jan 6, 2023
11e8bb9
update CalculationEngine import
Jan 6, 2023
422368a
update imports in initialization of ref data to memory
Jan 6, 2023
cae0f57
imports fixed
Jan 9, 2023
457abd2
import templates
Jan 9, 2023
bad7e19
use cases update
Jan 9, 2023
0341240
version change
Jan 10, 2023
ee236a5
rename + imports
Jan 10, 2023
d7568f9
new abstraction level and renamings
Jan 10, 2023
7b1da30
renamings
Jan 10, 2023
ec31906
renaming round done
Jan 10, 2023
2af5815
Initialize export data, start
Jan 10, 2023
3a3550e
first swipe of export data async
Jan 10, 2023
a8a0fbf
add trivial constructor
Jan 10, 2023
c4912fb
execute with store activity compiles
Jan 10, 2023
9d0166c
Removed the buggy parts
Jan 11, 2023
6194647
update initialize
Jan 11, 2023
a9fd738
save the imports
Jan 11, 2023
af63648
fix exports in map template
Jan 11, 2023
d64de56
Use content to determine length
Jan 11, 2023
055f15a
Remove obsolete comment
Jan 11, 2023
f65d063
Merge remote-tracking branch 'origin/develop' into 137_ActivityLogs
Jan 11, 2023
5e7e433
update to 1.6.4 version, which is functional now
Jan 11, 2023
6899bdc
tests
Jan 12, 2023
670f74f
tests
Jan 12, 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
10 changes: 8 additions & 2 deletions PresentValueSeries/InitializeData.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Dimensions.xlsx\").WithFormat(ImportFormats.AocConfiguration).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"Dimensions.xlsx\")",
"\n .WithFormat(ImportFormats.AocConfiguration)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -76,7 +79,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"DataNodes.xlsx\").WithFormat(\"DataNode\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"DataNodes.xlsx\")",
"\n .WithFormat(\"DataNode\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
10 changes: 8 additions & 2 deletions PresentValueSeries/PresentValue - Episode 2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"YieldCurve.xlsx\").WithType<YieldCurve>().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"YieldCurve.xlsx\")",
"\n .WithType<YieldCurve>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -177,7 +180,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Cashflows.xlsx\").WithFormat(\"Cashflow\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"Cashflows.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
35 changes: 28 additions & 7 deletions PresentValueSeries/PresentValue - Episode 3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"DataNodes_CH.xlsx\").WithFormat(\"DataNode\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"DataNodes_CH.xlsx\")",
"\n .WithFormat(\"DataNode\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -177,7 +180,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"DataNodes_DE.xlsx\").WithFormat(\"DataNode\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"DataNodes_DE.xlsx\")",
"\n .WithFormat(\"DataNode\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -186,7 +192,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"YieldCurve.xlsx\").WithType<YieldCurve>().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"YieldCurve.xlsx\")",
"\n .WithType<YieldCurve>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -195,7 +204,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"Cashflows.xlsx\").WithFormat(\"Cashflow\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"Cashflows.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -204,7 +216,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"CF_CH_2021_12.xlsx\").WithFormat(\"Cashflow\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"CF_CH_2021_12.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -213,7 +228,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"CF_DE_2021_12.xlsx\").WithFormat(\"Cashflow\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"CF_DE_2021_12.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -222,7 +240,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"CF_DE_2022_12.xlsx\").WithFormat(\"Cashflow\").WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"CF_DE_2022_12.xlsx\")",
"\n .WithFormat(\"Cashflow\")",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
6 changes: 3 additions & 3 deletions ifrs17-template/Export/MapTemplate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"\n .GroupofContractConfiguration<GroupOfReinsuranceContract>(typeof(ReinsurancePortfolio))",
"\n .GroupofContractConfiguration<GroupOfInsuranceContract>(typeof(InsurancePortfolio))",
"\n .MainTabConfigurationWoScenario(partition)",
"\n.ExecuteAsync()"
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -240,7 +240,7 @@
"\n .StateEnumConfiguration() ",
"\n .DataNodeStateConfiguration(dataNodeStates)",
"\n .MainTabConfigurationWoScenario(partition)",
"\n.ExecuteAsync()"
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -326,7 +326,7 @@
"\n .WithSource(Workspace)",
"\n .DataNodeParameterConfiguration(dataNodeParameters)",
"\n .MainTabConfiguration(partition)",
"\n.ExecuteAsync()"
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
10 changes: 8 additions & 2 deletions ifrs17-template/Import/CloseImportTemplate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(pathToFile).WithFormat(format).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(pathToFile)",
"\n .WithFormat(format)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down Expand Up @@ -163,7 +166,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(pathToFile).WithFormat(format).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(pathToFile)",
"\n .WithFormat(format)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
15 changes: 12 additions & 3 deletions ifrs17-template/Initialization/InitSystemorphBaseToMemory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodes_CH.csv\").WithFormat(ImportFormats.DataNode).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/DataNodes/DataNodes_CH.csv\")",
"\n .WithFormat(ImportFormats.DataNode)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -86,7 +89,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeStates_CH_2020_12.csv\").WithFormat(ImportFormats.DataNodeState).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/DataNodes/DataNodeStates_CH_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeState)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -95,7 +101,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/DataNodes/DataNodeParameters_CH_2020_12.csv\").WithFormat(ImportFormats.DataNodeParameter).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/DataNodes/DataNodeParameters_CH_2020_12.csv\")",
"\n .WithFormat(ImportFormats.DataNodeParameter)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
67 changes: 54 additions & 13 deletions ifrs17-template/Initialization/InitSystemorphRefDataToMemory.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"\n .WithType<Scenario>()",
"\n .WithType<ProjectionConfiguration>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteAsync()"
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -127,7 +127,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Dimensions.csv\").WithFormat(ImportFormats.AocConfiguration).WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Dimensions.csv\")",
"\n .WithFormat(ImportFormats.AocConfiguration)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -136,7 +139,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/ReportingNodes/ReportingNodes.csv\").WithType<ReportingNode>().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/ReportingNodes/ReportingNodes.csv\")",
"\n .WithType<ReportingNode>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -154,13 +160,39 @@
{
"cell_type": "code",
"source": [
"var log = await Import.FromFile(\"../Files/Parameters/YieldCurve_2019_12.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync();",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_1.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync());",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_3.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync());",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_12.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync());",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_3.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync());",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_6.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync());",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_12.csv\").WithFormat(ImportFormats.YieldCurve).WithTarget(DataSource).ExecuteAsync());",
"var log = await Import.FromFile(\"../Files/Parameters/YieldCurve_2019_12.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader);",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_1.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_3.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2020_12.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_3.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_6.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)",
"\n );",
"\nlog.Merge(await Import.FromFile(\"../Files/Parameters/YieldCurve_2021_12.csv\")",
"\n .WithFormat(ImportFormats.YieldCurve)",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader));",
"\nlog"
],
"metadata": {},
Expand All @@ -170,7 +202,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\").WithType<ExchangeRate>().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/ExchangeRate.csv\")",
"\n .WithType<ExchangeRate>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -179,7 +214,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\").WithType<PartnerRating>().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/PartnerRating.csv\")",
"\n .WithType<PartnerRating>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand All @@ -188,7 +226,10 @@
{
"cell_type": "code",
"source": [
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\").WithType<CreditDefaultRate>().WithTarget(DataSource).ExecuteAsync()"
"await Import.FromFile(\"../Files/Parameters/CreditDefaultRate.csv\")",
"\n .WithType<CreditDefaultRate>()",
"\n .WithTarget(DataSource)",
"\n .ExecuteWithStoreActivityAsync(Session, DataSource, DataSetReader)"
],
"metadata": {},
"execution_count": 0,
Expand Down
Loading