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
1 change: 0 additions & 1 deletion full-ifrs17-template/Constants/CalculationEngine.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"nbformat_minor": 5,
"cells": [
{
"id": "0lsQIC1gDEODx-OkvAl3pQ",
"cell_type": "code",
"source": [
"var projectName = \"ifrs17\";",
Expand Down
11 changes: 0 additions & 11 deletions full-ifrs17-template/Database/Configure.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"nbformat_minor": 5,
"cells": [
{
"id": "4pCtjml9b0qsW_qdBuJO6w",
"cell_type": "markdown",
"source": [
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> DataSource Configuration </span> </p>"
Expand All @@ -29,7 +28,6 @@
"outputs": []
},
{
"id": "Vfn_7rax10adJW_1ZtDM8A",
"cell_type": "code",
"source": [
"#!import \"../Constants/CalculationEngine\"",
Expand All @@ -40,7 +38,6 @@
"outputs": []
},
{
"id": "KhBa0fF-l0a93pgXYgVuFw",
"cell_type": "code",
"source": [
"#!import \"PersonalConnection\""
Expand All @@ -50,7 +47,6 @@
"outputs": []
},
{
"id": "Vh7nAxVvy0iUuSAGzjmDaw",
"cell_type": "code",
"source": [
"using System.Reflection;"
Expand All @@ -60,7 +56,6 @@
"outputs": []
},
{
"id": "ZMZQjqRWTUGnPoJJpxkdLw",
"cell_type": "markdown",
"source": [
"# Database Configure"
Expand All @@ -70,7 +65,6 @@
"outputs": []
},
{
"id": "M452PsrooEqiMehPCaxUyQ",
"cell_type": "code",
"source": [
"var allTypes = AppDomain.CurrentDomain.GetAssemblies().SelectMany(a => a.GetTypes())",
Expand All @@ -84,7 +78,6 @@
"outputs": []
},
{
"id": "0N7ABGO-n06LsiMOOHcdJw",
"cell_type": "code",
"source": [
"await DataSource.Configure().UseMsSql(opt => opt.WithConnectionString(connectionStringMsSql)",
Expand All @@ -95,7 +88,6 @@
"outputs": []
},
{
"id": "RmBLxQdX_kOIeA0ktt94xQ",
"cell_type": "code",
"source": [
"await DataSource.CommitAsync();"
Expand All @@ -105,7 +97,6 @@
"outputs": []
},
{
"id": "BA0VOza8rEajIHBmKBrSXA",
"cell_type": "markdown",
"source": [
"# Reset Workspace"
Expand All @@ -115,7 +106,6 @@
"outputs": []
},
{
"id": "9InVK4PX5EGrE4_tARwXLw",
"cell_type": "code",
"source": [
"Workspace.Reset(x => x.ResetInitializationRules());"
Expand All @@ -125,7 +115,6 @@
"outputs": []
},
{
"id": "oYFbN_9RAU6NiE_F3qNY1A",
"cell_type": "code",
"source": [
""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"nbformat_minor": 5,
"cells": [
{
"id": "PacHtppMCEiAbT28F8yC9Q",
"cell_type": "code",
"source": [
"var connectionStringMsSql = \"here enter your connection string\";"
Expand Down
6 changes: 0 additions & 6 deletions full-ifrs17-template/Database/Schema Delete.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"nbformat_minor": 5,
"cells": [
{
"id": "kZ8F8V4tB0Wn8FeC8OhusQ",
"cell_type": "code",
"source": [
"#!import \"PersonalConnection\""
Expand All @@ -27,7 +26,6 @@
"outputs": []
},
{
"id": "ns9rbHPX0kSH-ZK7AejMeA",
"cell_type": "code",
"source": [
"#r \"nuget:SqlConnection,1.0.4\""
Expand All @@ -37,7 +35,6 @@
"outputs": []
},
{
"id": "4PUwLlVsK0uhCCfeGwRHFg",
"cell_type": "code",
"source": [
"string[] split = connectionStringMsSql.Split(new char[] { '=', ':', ',', ';' });",
Expand All @@ -52,7 +49,6 @@
"outputs": []
},
{
"id": "_tMxxfxtoU-Ji32JWMtCRw",
"cell_type": "code",
"source": [
"using SQLConnection;",
Expand All @@ -64,7 +60,6 @@
"outputs": []
},
{
"id": "4vlEnuUvfkqV87nAO3Zbsg",
"cell_type": "code",
"source": [
"string query = \"DECLARE @sql NVARCHAR(max)='' SELECT @sql += ' Drop table ' + QUOTENAME(TABLE_SCHEMA) + '.'+ QUOTENAME(TABLE_NAME) + '; 'FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' Exec Sp_executesql @sql\";"
Expand All @@ -74,7 +69,6 @@
"outputs": []
},
{
"id": "wseyK5F-cE-ZP_jy2OkS8Q",
"cell_type": "code",
"source": [
"int rowAffect = SqlServer.AzureSqlConnection(serverName, database, userID, password, query);"
Expand Down
31 changes: 0 additions & 31 deletions full-ifrs17-template/Export/MapTemplate.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"nbformat_minor": 5,
"cells": [
{
"id": "fjKBauyn0Uyuk0uljGsArg",
"cell_type": "markdown",
"source": [
"<p style=\"font-weight:bold;\"> <span style=\"font-size: 36px\"> Map Template </span> </p>"
Expand All @@ -28,7 +27,6 @@
"outputs": []
},
{
"id": "A4j8UHGNc0697n1iNB4Z7g",
"cell_type": "markdown",
"source": [
"This notebook exports the data nodes, data node states, and data node parameters belonging to a specific data partition into an excel file.",
Expand All @@ -40,7 +38,6 @@
"outputs": []
},
{
"id": "WuQQ_5xug0mco92fji7LKw",
"cell_type": "markdown",
"source": [
"After setting the desired target Partition, the Data present in the workspace is ready to be exported. ",
Expand All @@ -52,7 +49,6 @@
"outputs": []
},
{
"id": "91ew-zbV-kyChbcoiWA4Pg",
"cell_type": "markdown",
"source": [
"# Select Initialization"
Expand All @@ -62,7 +58,6 @@
"outputs": []
},
{
"id": "Qv_pfuGhMk6HAPOyqqo4RA",
"cell_type": "markdown",
"source": [
"Choose to run the Map Template either with the set of Systemorph data in memory or with the data present in the Database: ",
Expand All @@ -76,7 +71,6 @@
"outputs": []
},
{
"id": "jYRWlCvih0ih3Qb-VCnJxw",
"cell_type": "code",
"source": [
"#!eval-notebook \"../Import/CloseImportTemplate\""
Expand All @@ -86,7 +80,6 @@
"outputs": []
},
{
"id": "f0i5Zqm2k0CiHXxvSxfEMw",
"cell_type": "markdown",
"source": [
"# Workspace Initialization "
Expand All @@ -96,7 +89,6 @@
"outputs": []
},
{
"id": "eyUx5D6bFkeK-e_YOjcKcw",
"cell_type": "markdown",
"source": [
"Firstly, the Workspace is initialized with basic dimensions and with Data Nodes. For a list of the dimensions please refer to the DataModel/DataStructure notebook."
Expand All @@ -106,7 +98,6 @@
"outputs": []
},
{
"id": "XLZRzQo0h0KkxPio3o_pQA",
"cell_type": "code",
"source": [
"Workspace.InitializeFrom(DataSource);"
Expand All @@ -116,7 +107,6 @@
"outputs": []
},
{
"id": "yaG0mhZJ4USG66zLvyOp8A",
"cell_type": "markdown",
"source": [
"# Map Template: Data Node",
Expand All @@ -128,7 +118,6 @@
"outputs": []
},
{
"id": "ZwUv99iEz0-BpQlAkBB0MQ",
"cell_type": "markdown",
"source": [
"## Set Partition"
Expand All @@ -138,7 +127,6 @@
"outputs": []
},
{
"id": "KZS8p8Zgm0aL-Acn-8hUUQ",
"cell_type": "code",
"source": [
"static var partition = new PartitionByReportingNode() { ReportingNode = \"CH\" };",
Expand All @@ -149,7 +137,6 @@
"outputs": []
},
{
"id": "L64PC131ukOuV4NLTc8U8g",
"cell_type": "markdown",
"source": [
"## Export"
Expand All @@ -159,7 +146,6 @@
"outputs": []
},
{
"id": "36zerkOEh0ChbLDtD5sf9Q",
"cell_type": "code",
"source": [
"await Export.ToExcel(\"DataNodes\")",
Expand All @@ -176,7 +162,6 @@
"outputs": []
},
{
"id": "LHS727tkQ06vfv6NhHl_sg",
"cell_type": "markdown",
"source": [
"# Map Template: Data Node State",
Expand All @@ -188,7 +173,6 @@
"outputs": []
},
{
"id": "5jGzLrGmT0Gj9wlvkzSy9Q",
"cell_type": "markdown",
"source": [
"## Set Partition"
Expand All @@ -198,7 +182,6 @@
"outputs": []
},
{
"id": "vV883PT1KUOnvMOnG7uAoA",
"cell_type": "code",
"source": [
"static var partition = new PartitionByReportingNodeAndPeriod() { ReportingNode = \"CH\", Year = 2020, Month = 12 };",
Expand All @@ -209,7 +192,6 @@
"outputs": []
},
{
"id": "cGT1t9x9WkiwDWDsmfpnCw",
"cell_type": "markdown",
"source": [
"## Export"
Expand All @@ -219,7 +201,6 @@
"outputs": []
},
{
"id": "3xILTNiIAk2QthF03nLqeQ",
"cell_type": "markdown",
"source": [
"The data is retrieved for the Workspace and prepared for export."
Expand All @@ -229,7 +210,6 @@
"outputs": []
},
{
"id": "1WrPhQtQwkic6piAumGUmw",
"cell_type": "code",
"source": [
"var dataNodeStates = (await Workspace.Query<DataNodeState>()",
Expand All @@ -244,7 +224,6 @@
"outputs": []
},
{
"id": "oJW1Sg5FsUyI5evdcvmJ_A",
"cell_type": "markdown",
"source": [
"Export is performed."
Expand All @@ -254,7 +233,6 @@
"outputs": []
},
{
"id": "p2h3e_gKYkSWAenN52sRYQ",
"cell_type": "code",
"source": [
"await Export.ToExcel(\"DataNodeState\")",
Expand All @@ -269,7 +247,6 @@
"outputs": []
},
{
"id": "B9bFvDffqES-eH1DaAJaEw",
"cell_type": "markdown",
"source": [
"# Map Template: Data Node Parameter",
Expand All @@ -281,7 +258,6 @@
"outputs": []
},
{
"id": "ZvrsiiVNcU6R9eFqGvFb8A",
"cell_type": "markdown",
"source": [
"## Set Partition"
Expand All @@ -291,7 +267,6 @@
"outputs": []
},
{
"id": "YFFB0fSxIEKDyRQ75hVt2g",
"cell_type": "code",
"source": [
"static var partition = new PartitionByReportingNodeAndPeriod() { ReportingNode = \"CH\", Year = 2020, Month = 12 };",
Expand All @@ -302,7 +277,6 @@
"outputs": []
},
{
"id": "Iy02_lvUWkqaWMeXB2KfpQ",
"cell_type": "markdown",
"source": [
"## Export"
Expand All @@ -312,7 +286,6 @@
"outputs": []
},
{
"id": "l2jxOmpye0iihraZH8DCdg",
"cell_type": "markdown",
"source": [
"The data is retrieved for the Workspace and prepared for export."
Expand All @@ -322,7 +295,6 @@
"outputs": []
},
{
"id": "LYzzjVLUkk-ts_ulw22Z4A",
"cell_type": "code",
"source": [
"var dataNodeParameters = (await Workspace.Query<DataNodeParameter>()",
Expand All @@ -339,7 +311,6 @@
"outputs": []
},
{
"id": "DVUmvzU18kiplnYxpVJ6Aw",
"cell_type": "markdown",
"source": [
"Export is performed."
Expand All @@ -349,7 +320,6 @@
"outputs": []
},
{
"id": "CAMD-p4UT0CPgGf2pt0gDQ",
"cell_type": "code",
"source": [
"await Export.ToExcel(\"DataNodeParameter\")",
Expand All @@ -363,7 +333,6 @@
"outputs": []
},
{
"id": "TMlydk8uOUKGO2LOiMpREw",
"cell_type": "code",
"source": [
""
Expand Down
Loading