Skip to content

A bug is found in "data.py" #2

@daehyun93

Description

@daehyun93

There is a bug line 79 in data.py. When one region (upper level geography) have correspondence to only one geographical unit (lower level geography), "self.geo["region_to_geo"].loc[region_id, geo_name].copy().tolist()" does return a value of not "list" type but "long" type. Hence, I would suggest you to use the following code to get rid of this bug.

geoids = self.geo["region_to_geo"].loc[region_id, geo_name].copy().tolist()
if isinstance(geoids, list):
    return (geoids)
else:
    return ([geoids])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions