Code Duplication    Length = 32-32 lines in 3 locations

src/egon/data/datasets/zensus_vg250.py 2 locations

@@ 86-117 (lines=32) @@
83
    geometry = Column(Geometry(srid=4326), index=True)
84
85
86
class Vg250Gem(Base):
87
    __tablename__ = "vg250_gem"
88
    __table_args__ = {"schema": "boundaries"}
89
90
    id = Column(BigInteger, primary_key=True, index=True)
91
    ade = Column(BigInteger)
92
    gf = Column(BigInteger)
93
    bsg = Column(BigInteger)
94
    ars = Column(String)
95
    ags = Column(String)
96
    sdv_ars = Column(String)
97
    gen = Column(String)
98
    bez = Column(String)
99
    ibz = Column(BigInteger)
100
    bem = Column(String)
101
    nbd = Column(String)
102
    sn_l = Column(String)
103
    sn_r = Column(String)
104
    sn_k = Column(String)
105
    sn_v1 = Column(String)
106
    sn_v2 = Column(String)
107
    sn_g = Column(String)
108
    fk_s3 = Column(String)
109
    nuts = Column(String)
110
    ars_0 = Column(String)
111
    ags_0 = Column(String)
112
    wsk = Column(String)
113
    debkg_id = Column(String)
114
    rs = Column(String)
115
    sdv_rs = Column(String)
116
    rs_0 = Column(String)
117
    geometry = Column(Geometry(srid=4326), index=True)
118
119
120
class DestatisZensusPopulationPerHa(Base):
@@ 52-83 (lines=32) @@
49
        )
50
51
52
class Vg250Sta(Base):
53
    __tablename__ = "vg250_sta"
54
    __table_args__ = {"schema": "boundaries"}
55
56
    id = Column(BigInteger, primary_key=True, index=True)
57
    ade = Column(BigInteger)
58
    gf = Column(BigInteger)
59
    bsg = Column(BigInteger)
60
    ars = Column(String)
61
    ags = Column(String)
62
    sdv_ars = Column(String)
63
    gen = Column(String)
64
    bez = Column(String)
65
    ibz = Column(BigInteger)
66
    bem = Column(String)
67
    nbd = Column(String)
68
    sn_l = Column(String)
69
    sn_r = Column(String)
70
    sn_k = Column(String)
71
    sn_v1 = Column(String)
72
    sn_v2 = Column(String)
73
    sn_g = Column(String)
74
    fk_s3 = Column(String)
75
    nuts = Column(String)
76
    ars_0 = Column(String)
77
    ags_0 = Column(String)
78
    wsk = Column(String)
79
    debkg_id = Column(String)
80
    rs = Column(String)
81
    sdv_rs = Column(String)
82
    rs_0 = Column(String)
83
    geometry = Column(Geometry(srid=4326), index=True)
84
85
86
class Vg250Gem(Base):

src/egon/data/datasets/power_plants/pv_rooftop_buildings.py 1 location

@@ 964-995 (lines=32) @@
961
    return df
962
963
964
class Vg250Lan(Base):
965
    """
966
    Class definition of table boundaries.vg250_lan.
967
968
    """
969
    __tablename__ = "vg250_lan"
970
    __table_args__ = {"schema": "boundaries"}
971
972
    id = Column(BigInteger, primary_key=True, index=True)
973
    ade = Column(BigInteger)
974
    gf = Column(BigInteger)
975
    bsg = Column(BigInteger)
976
    ars = Column(String)
977
    ags = Column(String)
978
    sdv_ars = Column(String)
979
    gen = Column(String)
980
    bez = Column(String)
981
    ibz = Column(BigInteger)
982
    bem = Column(String)
983
    nbd = Column(String)
984
    sn_l = Column(String)
985
    sn_r = Column(String)
986
    sn_k = Column(String)
987
    sn_v1 = Column(String)
988
    sn_v2 = Column(String)
989
    sn_g = Column(String)
990
    fk_s3 = Column(String)
991
    nuts = Column(String)
992
    ars_0 = Column(String)
993
    ags_0 = Column(String)
994
    wsk = Column(String)
995
    debkg_id = Column(String)
996
    rs = Column(String)
997
    sdv_rs = Column(String)
998
    rs_0 = Column(String)