Skip to content

Commit

Permalink
build-rki-csvs: remove strict ags set check
Browse files Browse the repository at this point in the history
In oct 2021 the AGS 16056 disappeared from
the RKI data set. That is, lacking_wrt_ref

was not

  set([11000, 3152])

anymore but

  set([11000, 3152, 16056])

which is when the program expectedly
crashed, leading up to issue #1748.

Now, deal with unexpected loss of a
column. This is accomodated for in the
epsilon merge tool which forward-fills
a column when it's in the base but not in
the extension.
  • Loading branch information
jgehrcke committed Oct 20, 2021
1 parent a49b2ac commit a37bbfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/build-rki-csvs.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def fetch_and_clean_data():

# The reference set has one AGS for entire Berlin -> what follows is
# expected.
assert lacking_wrt_ref == set([11000, 3152])
#assert lacking_wrt_ref == set([11000, 3152])
# AGS 3152 appeared in April 2020
#assert lacking_wrt_ref == set([11000])

added_wrt_ref = set([c for c in df_all_agss]) - set(ags_list_ref)
log.info("on top of ref AGS list: %s", added_wrt_ref)
Expand Down

0 comments on commit a37bbfe

Please sign in to comment.