AGS are stored as integers and missing leading zeros #1193
Labels
class::bug
Bugs found in the software
loc::data handling
This issue concerns any kind of data handling.
prio::moderate
The priority of this task is moderate.
Bug description
A lot of places are using the AGS to store information related to regions. In code integers are used to represent these ids, like here:
memilio/pycode/memilio-epidata/memilio/epidata/defaultDict.py
Line 206 in 339768e
This is wrong, as leading zeros are vanishing. The leading zeros are part of the AGS. Valid AGS can only have lengths of 2, 3, 5 and 8. The first two digits represent the federal state starting from 01 (Schleswig-Holstein) and ending at 16 (Thuringia).
For the first nine federal states this has led to many errors, when working with district data, as public datasets always contain the leading zeros, but exported data of memilio is missing them.
Version
Any
To reproduce
Relevant log output
Add any relevant information, e.g. used compiler, screenshots.
Checklist
The text was updated successfully, but these errors were encountered: