Code Duplication    Length = 12-15 lines in 2 locations

src/egon/data/datasets/heat_supply/individual_heating.py 1 location

@@ 541-555 (lines=15) @@
538
        )
539
540
541
class BuildingHeatPeakLoads(Base):
542
    """
543
    Class definition of table demand.egon_building_heat_peak_loads.
544
545
    Table with peak heat demand of residential and CTS heat demand combined for
546
    each building.
547
548
    """
549
550
    __tablename__ = "egon_building_heat_peak_loads"
551
    __table_args__ = {"schema": "demand"}
552
553
    building_id = Column(Integer, primary_key=True)
554
    scenario = Column(String, primary_key=True)
555
    sector = Column(String, primary_key=True)
556
    peak_load_in_w = Column(REAL)
557
558

src/egon/data/datasets/electricity_demand_timeseries/cts_buildings.py 1 location

@@ 114-125 (lines=12) @@
111
    source = Column(String)
112
113
114
class BuildingHeatPeakLoads(Base):
115
    """
116
    Class definition of table demand.egon_building_heat_peak_loads.
117
118
    """
119
120
    __tablename__ = "egon_building_heat_peak_loads"
121
    __table_args__ = {"schema": "demand"}
122
123
    building_id = Column(Integer, primary_key=True)
124
    scenario = Column(String, primary_key=True)
125
    sector = Column(String, primary_key=True)
126
    peak_load_in_w = Column(REAL)
127
128