Skip to content

Commit

Permalink
update unit definition
Browse files Browse the repository at this point in the history
  • Loading branch information
JR-1991 committed Dec 12, 2024
1 parent 434dbae commit 4adc919
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 34 deletions.
30 changes: 20 additions & 10 deletions types/equation/equation-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"xml": {
"is_attr": false,
"name": "equation"
}
},
"is_enum": false
},
{
"name": "variables",
Expand All @@ -34,7 +35,8 @@
"xml": {
"is_attr": false,
"name": "list_of_variables"
}
},
"is_enum": false
},
{
"name": "parameters",
Expand All @@ -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."
Expand All @@ -72,7 +75,8 @@
"xml": {
"is_attr": true,
"name": "id"
}
},
"is_enum": false
},
{
"name": "name",
Expand All @@ -88,7 +92,8 @@
"xml": {
"is_attr": true,
"name": "name"
}
},
"is_enum": false
},
{
"name": "symbol",
Expand All @@ -104,7 +109,8 @@
"xml": {
"is_attr": true,
"name": "symbol"
}
},
"is_enum": false
}
],
"docstring": "Represents a variable that is used in the equation."
Expand All @@ -126,7 +132,8 @@
"xml": {
"is_attr": true,
"name": "id"
}
},
"is_enum": false
},
{
"name": "name",
Expand All @@ -142,7 +149,8 @@
"xml": {
"is_attr": true,
"name": "name"
}
},
"is_enum": false
},
{
"name": "symbol",
Expand All @@ -158,7 +166,8 @@
"xml": {
"is_attr": true,
"name": "symbol"
}
},
"is_enum": false
},
{
"name": "value",
Expand All @@ -174,7 +183,8 @@
"xml": {
"is_attr": true,
"name": "value"
}
},
"is_enum": false
}
],
"docstring": "Represents a parameter that is used in the equation."
Expand Down
34 changes: 17 additions & 17 deletions types/equation/equation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}
21 changes: 14 additions & 7 deletions types/unit-definition/unit-definition-internal.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"xml": {
"is_attr": true,
"name": "id"
}
},
"is_enum": false
},
{
"name": "name",
Expand All @@ -34,7 +35,8 @@
"xml": {
"is_attr": true,
"name": "name"
}
},
"is_enum": false
},
{
"name": "base_units",
Expand All @@ -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."
Expand All @@ -72,7 +75,8 @@
"xml": {
"is_attr": true,
"name": "kind"
}
},
"is_enum": true
},
{
"name": "exponent",
Expand All @@ -88,7 +92,8 @@
"xml": {
"is_attr": true,
"name": "exponent"
}
},
"is_enum": false
},
{
"name": "multiplier",
Expand All @@ -104,7 +109,8 @@
"xml": {
"is_attr": true,
"name": "multiplier"
}
},
"is_enum": false
},
{
"name": "scale",
Expand All @@ -120,7 +126,8 @@
"xml": {
"is_attr": true,
"name": "scale"
}
},
"is_enum": false
}
],
"docstring": "Represents a base unit in the unit definition."
Expand Down

0 comments on commit 4adc919

Please sign in to comment.