Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ and the versioning aims to respect [Semantic Versioning](http://semver.org/spec/
- Update list for english column translation
[#715](https://github.com/OpenEnergyPlatform/open-MaStR/pull/715)
### Changed
- Replace Marktrollen with MarktakteureUndRollen
[#722](https://github.com/OpenEnergyPlatform/open-MaStR/pull/722)

### Removed

Expand Down
2 changes: 1 addition & 1 deletion docs/dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ After downloading the MaStR, you will find a database with a large number of tab
| grids | *Does not contain geoinformation* |
| locations_extended | *Connects units with grids - to get coordinates of units use the _extended tables*|
| market_actors | |
| market_roles | |
| market_actors_and_roles | |
| permit | |
| storage_units | |
| kwk | *short for: Combined heat and power (CHP)* |
Expand Down
2 changes: 1 addition & 1 deletion open_mastr/mastr.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def to_csv(
["wind", "solar", "biomass", "hydro", "gsgk", "combustion", "nuclear", "storage",
"balancing_area", "electricity_consumer", "gas_consumer", "gas_producer",
"gas_storage", "gas_storage_extended",
"grid_connections", "grids", "market_actors", "market_roles",
"grid_connections", "grids", "market_actors", "market_actors_and_roles",
"locations_extended", "permit", "deleted_units", "storage_units"]
chunksize: int
Defines the chunksize of the tables export.
Expand Down
6 changes: 4 additions & 2 deletions open_mastr/utils/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
"locations_extended",
"market_actors",
"market_roles",
"market_actors_and_roles",
"permit",
"deleted_units",
"deleted_market_actors",
Expand Down Expand Up @@ -87,7 +88,7 @@
],
"electricity_consumer": ["einheitenstromverbraucher"],
"location": ["lokationen"],
"market": ["marktakteure", "marktrollen"],
"market": ["marktakteure", "marktakteureundrollen"],
"grid": ["netzanschlusspunkte", "netze"],
"balancing_area": ["bilanzierungsgebiete"],
"permit": ["einheitengenehmigung"],
Expand All @@ -107,7 +108,7 @@
],
"electricity_consumer": ["electricity_consumer"],
"location": ["locations_extended"],
"market": ["market_actors", "market_roles"],
"market": ["market_actors", "market_actors_and_roles"],
"grid": ["grid_connections", "grids"],
"balancing_area": ["balancing_area"],
"permit": ["permit"],
Expand Down Expand Up @@ -165,6 +166,7 @@
"locations_extended": "LocationExtended",
"market_actors": "MarketActors",
"market_roles": "MarketRoles",
"market_actors_and_roles": "MarketActorsAndRoles",
"grid_connections": "GridConnections",
"grids": "Grids",
"balancing_area": "BalancingArea",
Expand Down
14 changes: 7 additions & 7 deletions open_mastr/utils/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,8 +612,8 @@ class ElectricityConsumer(ParentAllTables, Base):
GeplantesInbetriebnahmedatum = Column(Date)


class MarketRoles(ParentAllTables, Base):
__tablename__ = "market_roles"
class MarketActorsAndRoles(ParentAllTables, Base):
__tablename__ = "market_actors_and_roles"

MastrNummer = Column(String, primary_key=True)
MarktakteurMastrNummer = Column(String)
Expand Down Expand Up @@ -977,16 +977,16 @@ class ChangedDSOAssignment(ParentAllTables, Base):
"__class__": DeletedMarketActors,
"replace_column_names": None,
},
"marktrollen": {
"__name__": MarketRoles.__tablename__,
"__class__": MarketRoles,
"replace_column_names": None,
},
"marktakteure": {
"__name__": MarketActors.__tablename__,
"__class__": MarketActors,
"replace_column_names": None,
},
"marktakteureundrollen": {
"__name__": MarketActorsAndRoles.__tablename__,
"__class__": MarketActorsAndRoles,
"replace_column_names": None,
},
"netze": {
"__name__": Grids.__tablename__,
"__class__": Grids,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def test_data_to_include_tables():
]
include_tables_str = ["einheitenstromverbraucher"]

map_to_db_table_list = ["market_actors", "market_roles"]
map_to_db_table_list = ["market_actors", "market_actors_and_roles"]
map_to_db_table_str = ["locations_extended"]

# Assert
Expand Down
Loading