Skip to content

Commit

Permalink
[PYG-287] 🍃WindTurbine extending core (#359)
Browse files Browse the repository at this point in the history
* 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
doctrino authored Nov 16, 2024
1 parent 0a28ef7 commit f1a9317
Show file tree
Hide file tree
Showing 110 changed files with 2,187 additions and 344 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ node_modules/
package-lock.json
package.json
*.env
playground.ipynb
2 changes: 1 addition & 1 deletion cdf.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ default_env = "dev"
[modules]
# This is the version of the modules. It should not be changed manually.
# It will be updated by the 'cdf module upgrade' command.
version = "0.3.7"
version = "0.3.10"

[plugins]
run = false
Expand Down
6 changes: 4 additions & 2 deletions cdf/config.dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ environment:
variables:
modules:
models:
pygen:
omni:
pygen_models_space: sp_pygen_models
pygen_power: sp_pygen_power
pygen_other_models_space: sp_pygen_models_other
wind:
pygen_power: sp_pygen_power
pygen_power_enterprise: sp_pygen_power_enterprise

cdf_idm_extension:
organization: YourOrg
Expand Down
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.

This file was deleted.

206 changes: 206 additions & 0 deletions cdf/modules/models/wind/data_models/enterprise.datamodel.yaml
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
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
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
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
Expand Down
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
space: {{ pygen_power }}
space: {{ pygen_power_enterprise }}
externalId: Gearbox
name: Gearbox
usedFor: node
properties:
displacement_x:
type:
list: false
type: timeseries
type: direct
nullable: true
autoIncrement: false
immutable: false
name: displacement_x
displacement_y:
type:
list: false
type: timeseries
type: direct
nullable: true
autoIncrement: false
immutable: false
name: displacement_y
displacement_z:
type:
list: false
type: timeseries
type: direct
nullable: true
autoIncrement: false
immutable: false
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
space: {{ pygen_power }}
space: {{ pygen_power_enterprise }}
externalId: GeneratingUnit
name: GeneratingUnit
usedFor: node
Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
space: {{ pygen_power }}
space: {{ pygen_power_enterprise }}
externalId: Generator
name: Generator
usedFor: node
properties:
generator_speed_controller:
type:
list: false
type: timeseries
type: direct
nullable: true
autoIncrement: false
immutable: false
name: generator_speed_controller
generator_speed_controller_reference:
type:
list: false
type: timeseries
type: direct
nullable: true
autoIncrement: false
immutable: false
Expand Down
Loading

0 comments on commit f1a9317

Please sign in to comment.