Skip to content

Commit

Permalink
Put substation operator in static2 according to removal of operator s…
Browse files Browse the repository at this point in the history
…elect
  • Loading branch information
flacombe committed Aug 24, 2023
1 parent d2b2bc7 commit 0431c4d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion analysers/analyser_merge_power_line_FR.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def __init__(self, config, logger = None):
'power': 'line',
'operator': 'RTE',
'operator:wikidata': 'Q2178795'},
static2 = {'source': self.source},
static2 = {
'source': self.source},
mapping1 = {
'voltage': lambda fields: str((int(float(fields['tension'].replace('kV', '')) * 1000))) if fields['tension'] not in ('HORS TENSION', '<45kV', 'COURANT CONTINU') else None,
},
Expand Down
6 changes: 3 additions & 3 deletions analysers/analyser_merge_power_substation_FR.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def __init__(self, config, logger = None):
tag_keep_multiple_values = ["voltage"],
mapping = Mapping(
static1 = {
"power": "substation",
"power": "substation"},
static2 = {
"source": self.source,
"operator": "RTE",
"operator:wikidata": "Q2178795"},
static2 = {
"source": self.source},
mapping1 = {
"ref:FR:RTE": "Code poste",
"ref:FR:RTE_nom": "Nom poste"},
Expand Down

0 comments on commit 0431c4d

Please sign in to comment.