Code Duplication    Length = 12-13 lines in 2 locations

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

@@ 33-45 (lines=13) @@
30
Base = declarative_base()
31
32
33
class EgonPowerPlants(Base):
34
    __tablename__ = "egon_power_plants"
35
    __table_args__ = {"schema": "supply"}
36
    id = Column(BigInteger, Sequence("pp_seq"), primary_key=True)
37
    sources = Column(JSONB)
38
    source_id = Column(JSONB)
39
    carrier = Column(String)
40
    el_capacity = Column(Float)
41
    bus_id = Column(Integer)
42
    voltage_level = Column(Integer)
43
    weather_cell_id = Column(Integer)
44
    scenario = Column(String)
45
    geom = Column(Geometry("POINT", 4326))
46
47
48
class PowerPlants(Dataset):

src/egon/data/datasets/storages/__init__.py 1 location

@@ 42-53 (lines=12) @@
39
    capacity = Column(Float)
40
41
42
class EgonStorages(Base):
43
    __tablename__ = "egon_storages"
44
    __table_args__ = {"schema": "supply"}
45
    id = Column(BigInteger, Sequence("storage_seq"), primary_key=True)
46
    sources = Column(JSONB)
47
    source_id = Column(JSONB)
48
    carrier = Column(String)
49
    el_capacity = Column(Float)
50
    bus_id = Column(Integer)
51
    voltage_level = Column(Integer)
52
    scenario = Column(String)
53
    geom = Column(Geometry("POINT", 4326))
54
55
56
class Storages(Dataset):