Code Duplication    Length = 63-63 lines in 2 locations

src/egon/data/datasets/heat_demand_timeseries/idp_pool.py 1 location

@@ 29-91 (lines=63) @@
26
    selected_idp_profiles = Column(ARRAY(Integer))
27
28
29
def temperature_classes():
30
    return {
31
        -20: 1,
32
        -19: 1,
33
        -18: 1,
34
        -17: 1,
35
        -16: 1,
36
        -15: 1,
37
        -14: 2,
38
        -13: 2,
39
        -12: 2,
40
        -11: 2,
41
        -10: 2,
42
        -9: 3,
43
        -8: 3,
44
        -7: 3,
45
        -6: 3,
46
        -5: 3,
47
        -4: 4,
48
        -3: 4,
49
        -2: 4,
50
        -1: 4,
51
        0: 4,
52
        1: 5,
53
        2: 5,
54
        3: 5,
55
        4: 5,
56
        5: 5,
57
        6: 6,
58
        7: 6,
59
        8: 6,
60
        9: 6,
61
        10: 6,
62
        11: 7,
63
        12: 7,
64
        13: 7,
65
        14: 7,
66
        15: 7,
67
        16: 8,
68
        17: 8,
69
        18: 8,
70
        19: 8,
71
        20: 8,
72
        21: 9,
73
        22: 9,
74
        23: 9,
75
        24: 9,
76
        25: 9,
77
        26: 10,
78
        27: 10,
79
        28: 10,
80
        29: 10,
81
        30: 10,
82
        31: 10,
83
        32: 10,
84
        33: 10,
85
        34: 10,
86
        35: 10,
87
        36: 10,
88
        37: 10,
89
        38: 10,
90
        39: 10,
91
        40: 10,
92
    }
93
94

src/egon/data/datasets/heat_demand_timeseries/daily.py 1 location

@@ 39-101 (lines=63) @@
36
    daily_demand_share = Column(Float(53))
37
38
39
def temperature_classes():
40
    return {
41
        -20: 1,
42
        -19: 1,
43
        -18: 1,
44
        -17: 1,
45
        -16: 1,
46
        -15: 1,
47
        -14: 2,
48
        -13: 2,
49
        -12: 2,
50
        -11: 2,
51
        -10: 2,
52
        -9: 3,
53
        -8: 3,
54
        -7: 3,
55
        -6: 3,
56
        -5: 3,
57
        -4: 4,
58
        -3: 4,
59
        -2: 4,
60
        -1: 4,
61
        0: 4,
62
        1: 5,
63
        2: 5,
64
        3: 5,
65
        4: 5,
66
        5: 5,
67
        6: 6,
68
        7: 6,
69
        8: 6,
70
        9: 6,
71
        10: 6,
72
        11: 7,
73
        12: 7,
74
        13: 7,
75
        14: 7,
76
        15: 7,
77
        16: 8,
78
        17: 8,
79
        18: 8,
80
        19: 8,
81
        20: 8,
82
        21: 9,
83
        22: 9,
84
        23: 9,
85
        24: 9,
86
        25: 9,
87
        26: 10,
88
        27: 10,
89
        28: 10,
90
        29: 10,
91
        30: 10,
92
        31: 10,
93
        32: 10,
94
        33: 10,
95
        34: 10,
96
        35: 10,
97
        36: 10,
98
        37: 10,
99
        38: 10,
100
        39: 10,
101
        40: 10,
102
    }
103
104