Skip to content

Commit

Permalink
Merge pull request #386 from GermanZero-de/industry-ratio-dehst-ner
Browse files Browse the repository at this point in the history
Industry ratio dehst ner
  • Loading branch information
bgrundmann authored Mar 7, 2024
2 parents a6b89ee + 8742387 commit 57c7501
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions commands/cmd_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def print_lookup(name: str, lookup_fn: Callable[[str], refdata.Row[str]], key: s
print(record)
print()

def industry_dehst(a: str) -> refdata.Row[str]:
# Some hackery to get around the different interfaces of the two reference data sources
return refdata.Row(data._industry_dehst, a) # type: ignore

by_ags = [
("area", data.area),
("area_kinds", data.area_kinds),
Expand All @@ -93,6 +97,7 @@ def print_lookup(name: str, lookup_fn: Callable[[str], refdata.Row[str]], key: s
("renewable_energy", data.renewable_energy),
("flats", data.flats),
("traffic", data.traffic),
("industry", industry_dehst),
]

by_dis = [
Expand Down
2 changes: 1 addition & 1 deletion data/production.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"public": "970228eef780064e5ad671b10583b72002345a7f",
"public": "f02605a5b970ba3a3249db3d6457d0a299e00e39",
"proprietary": "d0445ba3e5501b8570c89cfd07677c91a7206e31"
}

0 comments on commit 57c7501

Please sign in to comment.