diff --git a/Scripts/datahandling/zonedata.py b/Scripts/datahandling/zonedata.py index 5141e93c..42495493 100644 --- a/Scripts/datahandling/zonedata.py +++ b/Scripts/datahandling/zonedata.py @@ -71,8 +71,9 @@ def __init__(self, data_dir: str, zone_numbers: numpy.array): self.share["share_male"] = pandas.Series(0.5, self.zone_numbers) self.nr_zones = len(self.zone_numbers) self["population_density"] = pop / landdata["builtar"] - wp = workdata["total"] + wp = workdata.pop("total") self["workplaces"] = wp + ShareChecker({})["Workplace shares"] = workdata.sum(axis="columns") self["service"] = workdata["sh_serv"] * wp self["shops"] = workdata["sh_shop"] * wp self["logistics"] = workdata["sh_logi"] * wp