Skip to content

Commit 9f95a66

Browse files
Merge pull request #997 from ie3-institute/ms/#826-remove-uuid-column-from-time-series
Removing uuid column from time series
2 parents 234bf58 + e3df5dd commit 9f95a66

File tree

188 files changed

+3706
-4888
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

188 files changed

+3706
-4888
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3838
- Updated contributing.md [#737](https://github.com/ie3-institute/PowerSystemDataModel/issues/737)
3939
- Don't throw exceptions for not yet implemented validations [#879](https://github.com/ie3-institute/PowerSystemDataModel/issues/879)
4040
- `CsvDataSource` throws exceptions on error [#954](https://github.com/ie3-institute/PowerSystemDataModel/issues/954)
41+
- Removing `uuid` as required column from input and result time series [#826](https://github.com/ie3-institute/PowerSystemDataModel/issues/826)
4142

4243
## [4.1.0] - 2023-11-02
4344

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ dependencies {
9696
implementation 'commons-io:commons-io:2.15.1' // I/O functionalities
9797
implementation 'commons-codec:commons-codec:1.16.1' // needed by commons-compress
9898
implementation 'org.apache.commons:commons-compress:1.26.0' // I/O functionalities
99-
implementation 'org.apache.commons:commons-lang3:3.14.0'
10099
}
101100

102101
tasks.withType(JavaCompile) {

docs/readthedocs/io/ValidationUtils.md

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,31 @@
22
This page gives an overview about the ValidationUtils in the *PowerSystemDataModel*.
33

44
## What are the ValidationUtils?
5-
The methods in ValidationUtils and subclasses can be used to check that objects are valid, meaning their parameters have valid values and they are correctly connected.
5+
The methods in ValidationUtils and subclasses can be used to check that objects are valid. The checks can be separated into two types:
6+
1. General validation
7+
2. Uniqueness validation
8+
69

710
## What is checked?
8-
- The check methods include checks that assigned values are valid, e.g. lines are not allowed to have negative lengths or the rated power factor of any unit must be between 0 and 1.
9-
- Furthermore, several connections are checked, e.g. that lines only connect nodes of the same voltage level or that the voltage levels indicated for the transformer sides match the voltage levels of the nodes they are connected to.
11+
The general validation checks:
12+
- if assigned values are valid, e.g. lines are not allowed to have negative lengths or the rated power factor of any unit must be between 0 and 1
13+
- furthermore, several connections are checked, e.g. that lines only connect nodes of the same voltage level or that the voltage levels indicated for the transformer sides match the voltage levels of the nodes they are connected to.
14+
15+
The uniqueness validation checks if a collection of given objects are unique in either:
16+
- a specific field
17+
- or in a combination of multiple fields
18+
19+
For example `AssetInputs` needs to be unique in their `uuid` and in their `id` while
20+
`weather values` needs to be unique in the combination of their `time` and their `coordinate`.
21+
22+
23+
## How to use?
24+
- To use the general validation the user should call the method `ValidationUtils.check(Object)`.
25+
- To use the uniqueness validation the user should call a method of `UniquenessValidationUtils` to check the uniqueness.
26+
27+
## How does the general validation work?
1028

11-
## How does it work?
12-
- The method `ValidationUtils.check(Object)` is the only method that should be called by the user.
13-
- This check method identifies the object class and forwards it to a specific check method for the given object
29+
- The method `ValidationUtils.check(Object)` identifies the object class and forwards it to a specific check method for the given object
1430
- The overall structure of the ValidationUtils methods follows a cascading scheme, orientated along the class tree
1531
- Example: A `LineInput lineInput` should be checked
1632
1. `ValidationUtils.check(lineInput)` is called
@@ -49,15 +65,14 @@ The ValidationUtils include validation checks for...
4965
- PvInput
5066
- StorageInput
5167
- WecInput
52-
- (missing: EvcsInput)
68+
- EvcsInput (also checks ChargingPointType)
5369
- SystemParticipantTypeInput
5470
- BmTypeInput
5571
- ChpTypeInput
5672
- EvTypeInput
5773
- HpTypeInput
5874
- StorageTypeInput
5975
- WecTypeInput
60-
- (missing: EvcsTypeInput/ChargingPointType)
6176
- ThermalUnitValidationUtils
6277
- ThermalUnitInput
6378
- ThermalSinkInput

docs/readthedocs/models/result/grid/connector.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of all kinds of connectors.
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

docs/readthedocs/models/result/grid/line.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of an AC line.
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

docs/readthedocs/models/result/grid/node.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of an electrical node, with no further distinction into bus bar,
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

docs/readthedocs/models/result/grid/switch.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of electrical switches.
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

docs/readthedocs/models/result/grid/transformer.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of transformers.
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

docs/readthedocs/models/result/grid/transformer2w.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of two winding transformers.
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

docs/readthedocs/models/result/grid/transformer3w.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ Representation of three winding transformers.
1616
- Unit
1717
- Remarks
1818
19-
* - uuid
20-
- --
21-
- uuid for the result entity
22-
2319
* - time
2420
- ZonedDateTime
2521
- date and time for the produced result

0 commit comments

Comments
 (0)