-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PYG-287] ðWindTurbine extending core (#359)
* build: poetry update * build: upgrade * refactor: firts draft enterprise * refactor: maybe finished with extension * fix: a bounch of bugs * refactor: split out enterprise * fix: one less bug * fix: errors in enterprise * fix: reverse bug * fix: equipment * fix: bug * fix: one more bug * refactor; valid dml * refactor: start on mapping * refactor; rename modules * refactor: move * refactor: first pass solution model * fix: bug in solution model * fix: bug in solution Datasheet.yaml * fix: added missing sources * fix: added missing views * fix: solution model * refactor: drop unit to avoid describable * build: update
- Loading branch information
Showing
110 changed files
with
2,187 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,3 +69,4 @@ node_modules/ | |
package-lock.json | ||
package.json | ||
*.env | ||
playground.ipynb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions
5
...odels/pygen/data_models/schema.space.yaml â ...models/omni/data_models/schema.space.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
- space: {{ pygen_models_space }} | ||
name: PygenModels | ||
description: This space contains all the schemas for the pygen models | ||
- space: {{ pygen_power }} | ||
name: PygenPower | ||
description: This space contains all the schemas for the pygen power models | ||
- space: {{ pygen_other_models_space }} | ||
name: PygenModels | ||
description: This is an additional space for the pygen models, used to test | ||
creating a model with views in different spaces. | ||
creating a model with views in different spaces. |
19 changes: 0 additions & 19 deletions
19
cdf/modules/models/pygen/data_models/windturbine/views/GeneratingUnit.view.yaml
This file was deleted.
Oops, something went wrong.
206 changes: 206 additions & 0 deletions
206
cdf/modules/models/wind/data_models/enterprise.datamodel.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
space: {{ pygen_power_enterprise }} | ||
externalId: WindDomain | ||
version: v1 | ||
name: WindDomain | ||
description: This is an enterprise data model for wind domain. | ||
views: | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: Blade | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: Gearbox | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: Generator | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: HighSpeedShaft | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: MainShaft | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: Metmast | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: Nacelle | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: PowerInverter | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: Rotor | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: SensorPosition | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: GeneratingUnit | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: WindTurbine | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: SolarPanel | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: WorkOrder | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: SensorTimeSeries | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: GeneratingEquipment | ||
version: v1 | ||
type: view | ||
- space: {{ pygen_power_enterprise }} | ||
externalId: DataSheet | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteDescribable | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteSourceable | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteSourceSystem | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteSchedulable | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteVisualizable | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite3DTransformation | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteCubeMap | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite3DObject | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite3DModel | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteCADModel | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite3DRevision | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CognitePointCloudModel | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite360ImageModel | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteCADRevision | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CognitePointCloudRevision | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite360ImageCollection | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteCADNode | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CognitePointCloudVolume | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite360Image | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite360ImageStation | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: Cognite360ImageAnnotation | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteAsset | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteAssetClass | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteAssetType | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteEquipment | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteEquipmentType | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteFile | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteFileCategory | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteActivity | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteTimeSeries | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteAnnotation | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteDiagramAnnotation | ||
version: v1 | ||
type: view | ||
- space: cdf_cdm | ||
externalId: CogniteUnit | ||
version: v1 | ||
type: view |
13 changes: 13 additions & 0 deletions
13
cdf/modules/models/wind/data_models/enterprise/containers/Blade.container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
space: {{ pygen_power_enterprise }} | ||
externalId: Blade | ||
name: Blade | ||
usedFor: node | ||
properties: | ||
is_damaged: | ||
type: | ||
list: false | ||
type: boolean | ||
nullable: true | ||
autoIncrement: false | ||
immutable: false | ||
name: is_damaged |
14 changes: 14 additions & 0 deletions
14
cdf/modules/models/wind/data_models/enterprise/containers/Datasheet.container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
space: {{ pygen_power_enterprise }} | ||
externalId: DataSheet | ||
name: DataSheet | ||
usedFor: node | ||
properties: | ||
UUID: | ||
type: | ||
list: false | ||
collation: ucs_basic | ||
type: text | ||
nullable: true | ||
autoIncrement: false | ||
immutable: false | ||
name: UUID |
2 changes: 1 addition & 1 deletion
2
...urbine/containers/Distance.container.yaml â ...rprise/containers/Distance.container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
space: {{ pygen_power }} | ||
space: {{ pygen_power_enterprise }} | ||
externalId: Distance | ||
name: Distance | ||
usedFor: edge | ||
|
8 changes: 4 additions & 4 deletions
8
...turbine/containers/Gearbox.container.yaml â ...erprise/containers/Gearbox.container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../containers/GeneratingUnit.container.yaml â .../containers/GeneratingUnit.container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
...rbine/containers/Generator.container.yaml â ...prise/containers/Generator.container.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.