Skip to content

Commit 4ab9861

Browse files
committed
Merge branch 'dev' into ms/#795-remove-support-for-old-csv-format
# Conflicts: # CHANGELOG.md # docs/readthedocs/gettingstarted.md
2 parents c36aebb + ddbc3f5 commit 4ab9861

File tree

109 files changed

+4149
-2234
lines changed

Some content is hidden

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

109 files changed

+4149
-2234
lines changed

AUTHORS

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1-
Copyright (c) 2023, Institute of Energy Systems, Energy Efficiency and Energy Economics (ie3)
1+
Copyright (c) 2024, Institute of Energy Systems, Energy Efficiency and Energy Economics (ie3)
22
All rights reserved.
33

44
Lead Developers:
55
- Johannes Hiry
66
- Chris Kittl
77
- Debopama Sen-Sarma
8+
- Thomas Oberließen
9+
- Daniel Feismann
10+
- Johannes Bao
11+
- Sebastian Peter
812

913
Main Contributers:
1014
- Johannes Hiry - https://github.com/johanneshiry
@@ -20,3 +24,8 @@ Main Contributers:
2024
- Marius Staudt - https://github.com/staudtMarius
2125
- Lara Roumeliotis - https://github.com/lararou
2226
- Vicky Bung - https://github.com/vickybung1
27+
- Daniel Feismann - https://github.com/danielfeismann
28+
- Johannes Bao - https://github.com/jo-bao
29+
- Julian Hohmann - https://github.com/julianhohmann
30+
- Simon Huette - https://github.com/SimonHuette
31+
- Pierre Petersmeier - http://github.com/pierrepetersmeier

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Fixed
1414
- Fixed Couchbase integration tests that randomly failed [#755](https://github.com/ie3-institute/PowerSystemDataModel/issues/755)
1515
- Fixed hyperlink in line documentation [#965](https://github.com/ie3-institute/PowerSystemDataModel/issues/965)
16+
- Fixed some tests no failing when they should [#958](https://github.com/ie3-institute/PowerSystemDataModel/issues/958)
1617

1718
### Changed
1819
- Changing from comparing strings to comparing uuids in `EntitySource.findFirstEntityByUuid` [#829](https://github.com/ie3-institute/PowerSystemDataModel/issues/829)
@@ -23,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2324
- Allowing for additional unused columns in sources [#839](https://github.com/ie3-institute/PowerSystemDataModel/issues/839)
2425
- Improving column name validation to only run once per source [#849](https://github.com/ie3-institute/PowerSystemDataModel/issues/849)
2526
- Refactored and abstracted `EntitySource`s and `EntityData` creation [#969](https://github.com/ie3-institute/PowerSystemDataModel/issues/969)
27+
- Updated contributing.md [#737](https://github.com/ie3-institute/PowerSystemDataModel/issues/737)
2628
- Removing the support for the old csv format that was marked `deprecated` back in version `1.1.0` [#795](https://github.com/ie3-institute/PowerSystemDataModel/issues/795)
2729

2830
## [4.1.0] - 2023-11-02
@@ -47,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4749
### Fixed
4850
- Fixed wrong rated power unit hint [#804](https://github.com/ie3-institute/PowerSystemDataModel/issues/804)
4951
- Fixed wrong hash code generation of ConnectorResult [#817](https://github.com/ie3-institute/PowerSystemDataModel/issues/817)
52+
- Fixed wrong path for timeSeriesMapping [#886](https://github.com/ie3-institute/PowerSystemDataModel/issues/886)
5053

5154
### Changed
5255
- Removing deprecated classes and methods [#540](https://github.com/ie3-institute/PowerSystemDataModel/issues/540)
@@ -55,6 +58,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5558
- Use nio paths instead of strings for file path [#723](https://github.com/ie3-institute/PowerSystemDataModel/issues/723)
5659
- Data source will throw an exceptions instead of returning an empty optionals [#707](https://github.com/ie3-institute/PowerSystemDataModel/issues/707)
5760
- Improving `ValidationUtils` [#758](https://github.com/ie3-institute/PowerSystemDataModel/issues/758)
61+
- conversion from rst to markdown myst[#979](https://github.com/ie3-institute/PowerSystemDataModel/pull/985)
5862

5963
## [3.0.0] - 2023-02-16
6064

CONTRIBUTING.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ With this document we would like to give you some orientation on how you can con
1616
## Testing and reporting bugs
1717
We really appreciate your usage of this project.
1818
Whenever you find a bug, it would be nice to check, if this isn't a feature to us. :wink:
19-
You may find extensive information about the intended behaviour when you [Read the Docs](https://powersystemdatamodel.readthedocs.io/en/latest/) or within the [javadoc](https://ie3-institute.github.io/PowerSystemDataModel/javadoc/).
19+
You may find extensive information about the intended behaviour when you [Read the Docs](https://powersystemdatamodel.readthedocs.io/en/latest/).
2020
If you still think it's a bug, please raise an [issue](https://guides.github.com/features/issues/) for us.
2121
Considering the following aspects in your inquiry, assists us in helping you:
2222

@@ -67,9 +67,6 @@ Before marking the pull request as 'ready to review', take these precautionary a
6767
`gradle finalizePR` summarizes all of these steps .
6868

6969
## For any doubts
70-
... please contact
71-
* Johannes (@johanneshiry),
72-
* Debopama (@sensarmad) or
73-
* Chris (@ckittl)
70+
... please contact [us](AUTHORS)
7471

7572
We are happy to help! :smiley:

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ plugins {
44
id 'maven-publish'
55
id 'signing'
66
id 'pmd' // code check, working on source code
7-
id 'com.diffplug.spotless' version '6.24.0' //code format
8-
id 'com.github.spotbugs' version '5.2.5' // code check, working on byte code
7+
id 'com.diffplug.spotless' version '6.25.0' //code format
8+
id 'com.github.spotbugs' version '6.0.7' // code check, working on byte code
99
id 'de.undercouch.download' version '5.5.0'
1010
id 'kr.motd.sphinx' version '2.10.1' // documentation generation
1111
id 'jacoco' // java code coverage plugin
@@ -18,7 +18,7 @@ ext {
1818
javaVersion = JavaVersion.VERSION_17
1919
groovyVersion = "4.0"
2020
groovyBinaryVersion = "4.0.18"
21-
testcontainersVersion = '1.19.3'
21+
testcontainersVersion = '1.19.4'
2222

2323
scriptsLocation = 'gradle' + File.separator + 'scripts' + File.separator //location of script plugins
2424
}

docs/readthedocs/gettingstarted.md

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,47 @@ If you feel, something is missing, please contact us!
55

66

77
## Requirements
8+
89
Java > v 17
910

1011
## Where to get
1112

12-
Checkout latest from `GitHub <https://github.com/ie3-institute/PowerSystemDataModel>`_ or use maven for dependency
13+
Checkout latest from [GitHub](https://github.com/ie3-institute/PowerSystemDataModel) or use maven for dependency
1314
management:
1415

1516
### Stable releases
16-
On `Maven central <https://search.maven.org/artifact/com.github.ie3-institute/PowerSystemDataModel>`_:
1717

18-
``` xml
19-
<dependency>
20-
<groupId>com.github.ie3-institute</groupId>
21-
<artifactId>PowerSystemDataModel</artifactId>
22-
<version>2.1.0</version>
23-
</dependency>
24-
25-
```
18+
On [Maven central](https://search.maven.org/artifact/com.github.ie3-institute/PowerSystemDataModel):
19+
20+
```xml
21+
<dependency>
22+
<groupId>com.github.ie3-institute</groupId>
23+
<artifactId>PowerSystemDataModel</artifactId>
24+
<version>2.1.0</version>
25+
</dependency>
26+
```
2627

2728

2829
### Snapshot releases
29-
Available on `OSS Sonatype <https://s01.oss.sonatype.org/>`_.
30+
31+
Available on [OSS Sonatype](https://s01.oss.sonatype.org/).
3032
Add the correct repository:
3133

32-
``` xml
33-
<repositories>
34-
<repository>https://s01.oss.sonatype.org/content/repositories/snapshots</repository>
35-
</repositories>
36-
```
34+
```xml
35+
<repositories>
36+
<repository>https://s01.oss.sonatype.org/content/repositories/snapshots</repository>
37+
</repositories>
38+
```
3739

3840
and add the dependency:
3941

40-
``` xml
41-
<dependency>
42-
<groupId>com.github.ie3-institute</groupId>
43-
<artifactId>PowerSystemDataModel</artifactId>
44-
<version>3.0-SNAPSHOT</version>
45-
</dependency>
46-
```
42+
```xml
43+
<dependency>
44+
<groupId>com.github.ie3-institute</groupId>
45+
<artifactId>PowerSystemDataModel</artifactId>
46+
<version>3.0-SNAPSHOT</version>
47+
</dependency>
48+
```
4749

4850
## Important changes
4951

docs/readthedocs/index.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Documentation of the PowerSystemDataModel
2+
3+
Welcome to the documentation of the PowerSystemDataModel.
4+
It provides an extensive data model capable of modelling energy systems with high granularity e.g. for bottom-up simulations.
5+
Additionally, useful functions to process, augment and furnish model i/o information is provided.
6+
Effective handling of geographic information related to power grids is also possible.
7+
8+
```{toctree}
9+
:caption: 'Contents:'
10+
:maxdepth: 2
11+
12+
gettingstarted
13+
models/models
14+
io/basiciousage
15+
```
16+
17+
## Contact the (Main) Maintainers
18+
19+
If you feel, something this missing, wrong or misleading, please contact one of our main contributors:
20+
21+
> - [@sensarmad](https://github.com/sensarmad)
22+
> - [@t-ober](https://github.com/t-ober)
23+
> - [@danielfeismann](https://github.com/danielfeismann)
24+
> - [@sebastian-peter](https://github.com/sebastian-peter)
25+
> - [@jo-bao](https://github.com/jo-bao)
26+
> - [@julianhohmann](https://github.com/julianhohmann)
27+
28+
Hat tip to all other contributors!
29+
30+
# Indices and tables
31+
32+
- {ref}`genindex`
33+
- {ref}`modindex`
34+
- {ref}`search`

docs/readthedocs/index.rst

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 32 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,32 @@
1-
********
2-
InfluxDB
3-
********
4-
`InfluxDB <https://www.influxdata.com/products/influxdb-overview/>`_ is a time series database. As such, it can only
5-
handle time based data like weather data or results.
6-
The PowerSystemDataModel offers two interface implementations for InfluxDB 1.x: WeatherSource and OutputDataSink.
7-
8-
Introduction to InfluxDB
9-
========================
10-
InfluxDB is a NoSQL database as it is neither relational nor able to handle SQL queries, even though InfluxDB's own
11-
QueryLanguage, `InfluxQL <https://docs.influxdata.com/influxdb/v1.8/query_language/>`_ is very similar to SQL.
12-
InfluxDB persists data in *measurements*. A measurement is comparable to a table in a relational data model. It consists
13-
of a *measurement name*, *fields*, *tags* and a *time column*. The measurement name is the equivalent of a table name. Fields
14-
and tags are similar as they both hold data like columns in relational data. But while fields are supposed to hold
15-
the actual data, tags should only hold metadata, which is why tag values can only be strings. Under default
16-
configuration, one tag key can only hold 10 000 distinct tag values. This choice was made as tags are indexed and
17-
supposed to be queried. Fields should only be queried if not avoidable. The time column is automatically provided, it
18-
holds timestamps in `RFC3339 UTC <https://www.ietf.org/rfc/rfc3339.txt>`_, which for example looks like
19-
"2020-06-22T10:14:50.52Z". The equivalent to a table row is a measurement point. It holds field and tag values as well
20-
as the time. While the data values are optional, a timestamp is not. If no time is provided when persisting, the current
21-
system time is used.
22-
23-
Instantiating an InfluxDB DataConnector
24-
=======================================
25-
To instantiate an InfluxDbConnector a connection url, a database name and a scenario name should be provided. The
26-
scenario name is used to build measurement names for results.
27-
If none of those are provided, default values are used.
28-
29-
.. code-block:: java
30-
31-
InfluxDbConnector unparameterizedInfluxDb = new InfluxDbConnector();
32-
InfluxDbConnector defaultInfluxDb = new InfluxDbConnector(""http://localhost:8086/", "ie3_in", null);
33-
unparameterizedInfluxDb.equals(defaultInfluxDb); //true
1+
# InfluxDB
2+
3+
[InfluxDB](https://www.influxdata.com/products/influxdb-overview/) is a time series database. As such, it can only
4+
handle time based data like weather data or results.
5+
The PowerSystemDataModel offers two interface implementations for InfluxDB 1.x: WeatherSource and OutputDataSink.
6+
7+
## Introduction to InfluxDB
8+
9+
InfluxDB is a NoSQL database as it is neither relational nor able to handle SQL queries, even though InfluxDB's own
10+
QueryLanguage, [InfluxQL](https://docs.influxdata.com/influxdb/v1.8/query_language/) is very similar to SQL.
11+
InfluxDB persists data in *measurements*. A measurement is comparable to a table in a relational data model. It consists
12+
of a *measurement name*, *fields*, *tags* and a *time column*. The measurement name is the equivalent of a table name. Fields
13+
and tags are similar as they both hold data like columns in relational data. But while fields are supposed to hold
14+
the actual data, tags should only hold metadata, which is why tag values can only be strings. Under default
15+
configuration, one tag key can only hold 10 000 distinct tag values. This choice was made as tags are indexed and
16+
supposed to be queried. Fields should only be queried if not avoidable. The time column is automatically provided, it
17+
holds timestamps in [RFC3339 UTC](https://www.ietf.org/rfc/rfc3339.txt), which for example looks like
18+
"2020-06-22T10:14:50.52Z". The equivalent to a table row is a measurement point. It holds field and tag values as well
19+
as the time. While the data values are optional, a timestamp is not. If no time is provided when persisting, the current
20+
system time is used.
21+
22+
## Instantiating an InfluxDB DataConnector
23+
24+
To instantiate an InfluxDbConnector a connection url, a database name and a scenario name should be provided. The
25+
scenario name is used to build measurement names for results.
26+
If none of those are provided, default values are used.
27+
28+
```java
29+
InfluxDbConnector unparameterizedInfluxDb = new InfluxDbConnector();
30+
InfluxDbConnector defaultInfluxDb = new InfluxDbConnector(""http://localhost:8086/", "ie3_in", null);
31+
unparameterizedInfluxDb.equals(defaultInfluxDb); //true
32+
```

docs/readthedocs/models/input/grid/gridcontainer.md

Lines changed: 42 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,49 @@ A synoptic overview of both classes' attributes is given here:
3737

3838
## Attributes, Units and Remarks
3939

40-
| Attribute | Unit | Remarks |
41-
|:------------------------|:-----|:--------------------------------------------------|
42-
| gridName | -- | Human readable identifier |
43-
| rawGrid | -- | see below |
44-
| systemParticipants | -- | see below |
45-
| graphics | -- | see below |
46-
| subGridTopologyGraph | -- | topology of sub grids - only `JointGridContainer` |
47-
| predominantVoltageLevel | -- | main voltage level - only `SubGridContainer` |
48-
| subnet | -- | sub grid number - only `SubGridContainer` |
40+
```{eval-rst}
41+
.. list-table::
42+
:widths: 33 33 33
43+
:header-rows: 0
4944
5045
46+
* - Attribute
47+
- Unit
48+
- Remarks
49+
50+
* - gridName
51+
- –
52+
- Human readable identifier
53+
54+
* - rawGrid
55+
- –
56+
- see below
57+
58+
* - systemParticipants
59+
- –
60+
- see below
61+
62+
* - graphics
63+
- –
64+
- see below
65+
66+
* - subGridTopologyGraph
67+
- –
68+
- topology of sub grids - only
69+
``JointGridContainer``
70+
71+
* - predominantVoltageLevel
72+
- –
73+
- main voltage level - only
74+
``SubGridContainer``
75+
76+
* - subnet
77+
- –
78+
- sub grid number - only
79+
``SubGridContainer``
80+
81+
```
82+
5183
### RawGridElements
5284
This sub container simply holds:
5385

@@ -89,4 +121,4 @@ This sub container simply holds:
89121

90122
## Caveats
91123
Nothing - at least not known.
92-
If you found something, please contact us!
124+
If you found something, please contact us!

0 commit comments

Comments
 (0)