From 4adc919740f28fccaf21463269a0fd3d56e73613 Mon Sep 17 00:00:00 2001 From: Jan Range Date: Thu, 12 Dec 2024 01:04:01 +0100 Subject: [PATCH] update unit definition --- types/equation/equation-internal.json | 30 ++++++++++------ types/equation/equation.json | 34 +++++++++---------- .../unit-definition-internal.json | 21 ++++++++---- 3 files changed, 51 insertions(+), 34 deletions(-) diff --git a/types/equation/equation-internal.json b/types/equation/equation-internal.json index 7a6ff2a..f28a8a8 100644 --- a/types/equation/equation-internal.json +++ b/types/equation/equation-internal.json @@ -18,7 +18,8 @@ "xml": { "is_attr": false, "name": "equation" - } + }, + "is_enum": false }, { "name": "variables", @@ -34,7 +35,8 @@ "xml": { "is_attr": false, "name": "list_of_variables" - } + }, + "is_enum": false }, { "name": "parameters", @@ -50,7 +52,8 @@ "xml": { "is_attr": false, "name": "list_of_parameters" - } + }, + "is_enum": false } ], "docstring": "Represents an equation that can be used in a data model." @@ -72,7 +75,8 @@ "xml": { "is_attr": true, "name": "id" - } + }, + "is_enum": false }, { "name": "name", @@ -88,7 +92,8 @@ "xml": { "is_attr": true, "name": "name" - } + }, + "is_enum": false }, { "name": "symbol", @@ -104,7 +109,8 @@ "xml": { "is_attr": true, "name": "symbol" - } + }, + "is_enum": false } ], "docstring": "Represents a variable that is used in the equation." @@ -126,7 +132,8 @@ "xml": { "is_attr": true, "name": "id" - } + }, + "is_enum": false }, { "name": "name", @@ -142,7 +149,8 @@ "xml": { "is_attr": true, "name": "name" - } + }, + "is_enum": false }, { "name": "symbol", @@ -158,7 +166,8 @@ "xml": { "is_attr": true, "name": "symbol" - } + }, + "is_enum": false }, { "name": "value", @@ -174,7 +183,8 @@ "xml": { "is_attr": true, "name": "value" - } + }, + "is_enum": false } ], "docstring": "Represents a parameter that is used in the equation." diff --git a/types/equation/equation.json b/types/equation/equation.json index 76a60a2..6a9008f 100644 --- a/types/equation/equation.json +++ b/types/equation/equation.json @@ -23,54 +23,54 @@ }, "description": "Represents an equation that can be used in a data model.", "definitions": { - "EqVariable": { - "title": "EqVariable", + "EqParameter": { + "title": "EqParameter", "type": "object", "properties": { "id": { "title": "id", - "description": "Unique identifier for the variable.", + "description": "Unique identifier for the parameter.", "type": "string" }, "name": { "title": "name", - "description": "Name of the variable.", + "description": "Name of the parameter.", "type": "string" }, "symbol": { "title": "symbol", - "description": "Symbol of the variable.", + "description": "Symbol of the parameter.", "type": "string" + }, + "value": { + "title": "value", + "description": "Value of the parameter.", + "type": "number" } }, - "description": "Represents a variable that is used in the equation." + "description": "Represents a parameter that is used in the equation." }, - "EqParameter": { - "title": "EqParameter", + "EqVariable": { + "title": "EqVariable", "type": "object", "properties": { "id": { "title": "id", - "description": "Unique identifier for the parameter.", + "description": "Unique identifier for the variable.", "type": "string" }, "name": { "title": "name", - "description": "Name of the parameter.", + "description": "Name of the variable.", "type": "string" }, "symbol": { "title": "symbol", - "description": "Symbol of the parameter.", + "description": "Symbol of the variable.", "type": "string" - }, - "value": { - "title": "value", - "description": "Value of the parameter.", - "type": "number" } }, - "description": "Represents a parameter that is used in the equation." + "description": "Represents a variable that is used in the equation." } } } \ No newline at end of file diff --git a/types/unit-definition/unit-definition-internal.json b/types/unit-definition/unit-definition-internal.json index 55bf939..5cc0ece 100644 --- a/types/unit-definition/unit-definition-internal.json +++ b/types/unit-definition/unit-definition-internal.json @@ -18,7 +18,8 @@ "xml": { "is_attr": true, "name": "id" - } + }, + "is_enum": false }, { "name": "name", @@ -34,7 +35,8 @@ "xml": { "is_attr": true, "name": "name" - } + }, + "is_enum": false }, { "name": "base_units", @@ -50,7 +52,8 @@ "xml": { "is_attr": false, "name": "base_units" - } + }, + "is_enum": false } ], "docstring": "Represents a unit definition that is based on the SI unit system." @@ -72,7 +75,8 @@ "xml": { "is_attr": true, "name": "kind" - } + }, + "is_enum": true }, { "name": "exponent", @@ -88,7 +92,8 @@ "xml": { "is_attr": true, "name": "exponent" - } + }, + "is_enum": false }, { "name": "multiplier", @@ -104,7 +109,8 @@ "xml": { "is_attr": true, "name": "multiplier" - } + }, + "is_enum": false }, { "name": "scale", @@ -120,7 +126,8 @@ "xml": { "is_attr": true, "name": "scale" - } + }, + "is_enum": false } ], "docstring": "Represents a base unit in the unit definition."