eflips-depot 4.14.1__py3-none-any.whl → 4.14.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of eflips-depot might be problematic. Click here for more details.
- eflips/depot/api/private/consumption.py +18 -22
- {eflips_depot-4.14.1.dist-info → eflips_depot-4.14.2.dist-info}/METADATA +1 -1
- {eflips_depot-4.14.1.dist-info → eflips_depot-4.14.2.dist-info}/RECORD +5 -5
- {eflips_depot-4.14.1.dist-info → eflips_depot-4.14.2.dist-info}/WHEEL +0 -0
- {eflips_depot-4.14.1.dist-info → eflips_depot-4.14.2.dist-info}/licenses/LICENSE.md +0 -0
|
@@ -121,38 +121,29 @@ class ConsumptionInformation:
|
|
|
121
121
|
)
|
|
122
122
|
|
|
123
123
|
# Recover the scales along each of the four axes from the datapoints
|
|
124
|
+
incline_col_index = self.consumption_lut.columns.index("incline")
|
|
125
|
+
temperature_col_index = self.consumption_lut.columns.index("t_amb")
|
|
126
|
+
level_of_loading_col_index = self.consumption_lut.columns.index(
|
|
127
|
+
"level_of_loading"
|
|
128
|
+
)
|
|
129
|
+
speed_col_index = self.consumption_lut.columns.index("mean_speed_kmh")
|
|
124
130
|
|
|
125
131
|
incline_scale = sorted(
|
|
126
|
-
set(
|
|
127
|
-
[
|
|
128
|
-
x[self.consumption_lut.columns.index("incline")]
|
|
129
|
-
for x in self.consumption_lut.data_points
|
|
130
|
-
]
|
|
131
|
-
)
|
|
132
|
+
set([x[incline_col_index] for x in self.consumption_lut.data_points])
|
|
132
133
|
)
|
|
133
134
|
temperature_scale = sorted(
|
|
134
|
-
set(
|
|
135
|
-
[
|
|
136
|
-
x[self.consumption_lut.columns.index("t_amb")]
|
|
137
|
-
for x in self.consumption_lut.data_points
|
|
138
|
-
]
|
|
139
|
-
)
|
|
135
|
+
set([x[temperature_col_index] for x in self.consumption_lut.data_points])
|
|
140
136
|
)
|
|
141
137
|
level_of_loading_scale = sorted(
|
|
142
138
|
set(
|
|
143
139
|
[
|
|
144
|
-
x[
|
|
140
|
+
x[level_of_loading_col_index]
|
|
145
141
|
for x in self.consumption_lut.data_points
|
|
146
142
|
]
|
|
147
143
|
)
|
|
148
144
|
)
|
|
149
145
|
speed_scale = sorted(
|
|
150
|
-
set(
|
|
151
|
-
[
|
|
152
|
-
x[self.consumption_lut.columns.index("mean_speed_kmh")]
|
|
153
|
-
for x in self.consumption_lut.data_points
|
|
154
|
-
]
|
|
155
|
-
)
|
|
146
|
+
set([x[speed_col_index] for x in self.consumption_lut.data_points])
|
|
156
147
|
)
|
|
157
148
|
|
|
158
149
|
# Create the 4d array
|
|
@@ -168,9 +159,14 @@ class ConsumptionInformation:
|
|
|
168
159
|
# Fill it with NaNs
|
|
169
160
|
consumption_lut.fill(np.nan)
|
|
170
161
|
|
|
171
|
-
for
|
|
172
|
-
|
|
173
|
-
|
|
162
|
+
for (
|
|
163
|
+
i,
|
|
164
|
+
data_point,
|
|
165
|
+
) in enumerate(self.consumption_lut.data_points):
|
|
166
|
+
incline = data_point[incline_col_index]
|
|
167
|
+
temperature = data_point[temperature_col_index]
|
|
168
|
+
level_of_loading = data_point[level_of_loading_col_index]
|
|
169
|
+
speed = data_point[speed_col_index]
|
|
174
170
|
consumption_lut[
|
|
175
171
|
incline_scale.index(incline),
|
|
176
172
|
temperature_scale.index(temperature),
|
|
@@ -2,7 +2,7 @@ eflips/depot/__init__.py,sha256=FCVnYU7aSfR4BNCo722I1V3uU5336qr1tTt-zT6X4UI,1555
|
|
|
2
2
|
eflips/depot/api/__init__.py,sha256=TDjYjf2h_oBwm3Wmcw1J1RQrV2xct7ETOMsgVZ6c30A,65406
|
|
3
3
|
eflips/depot/api/defaults/default_settings.json,sha256=0eUDTw_rtLQFvthP8oJL93iRXlmAOravAg-4qqGMQAY,5375
|
|
4
4
|
eflips/depot/api/private/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
-
eflips/depot/api/private/consumption.py,sha256=
|
|
5
|
+
eflips/depot/api/private/consumption.py,sha256=0wfI3ryfZS9qUqPbJP0okvwY2s6ogylw1PZFyAnCRf4,28915
|
|
6
6
|
eflips/depot/api/private/depot.py,sha256=c4XsRN06PScy4Z4yocqrdvMntmgOZdbIxNT9uuN2lxA,56857
|
|
7
7
|
eflips/depot/api/private/results_to_database.py,sha256=nvWb4jEM5JwPAhvAdiQ-qzxUSawfRNsYfv3twNUFcGs,27348
|
|
8
8
|
eflips/depot/api/private/util.py,sha256=DasTkuGUhlBpY_BtTFWoxSNZU_CRyM3RqEDgO07Eks8,17990
|
|
@@ -36,7 +36,7 @@ eflips/depot/simulation.py,sha256=ee0qTzOzG-8ybN36ie_NJallXfC7jUaS9JZvaYFziLs,10
|
|
|
36
36
|
eflips/depot/smart_charging.py,sha256=C3BYqzn2-OYY4ipXm0ETtavbAM9QXZMYULBpVoChf0E,54311
|
|
37
37
|
eflips/depot/standalone.py,sha256=8O01zEXghFG9zZBu0fUD0sXvbHQ-AXw6RB5M750a_sM,22419
|
|
38
38
|
eflips/depot/validation.py,sha256=TIuY7cQtEJI4H2VVMSuY5IIVkacEEZ67weeMuY3NSAM,7097
|
|
39
|
-
eflips_depot-4.14.
|
|
40
|
-
eflips_depot-4.14.
|
|
41
|
-
eflips_depot-4.14.
|
|
42
|
-
eflips_depot-4.14.
|
|
39
|
+
eflips_depot-4.14.2.dist-info/METADATA,sha256=UvewbAnnEpknimQuan3FpVOmSmBXAvXmFPtfSxZbUdI,5961
|
|
40
|
+
eflips_depot-4.14.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
|
|
41
|
+
eflips_depot-4.14.2.dist-info/licenses/LICENSE.md,sha256=KB4XTk1fPHjtZCYDyPyreu6h1LVJVZXYg-5vePcWZAc,34143
|
|
42
|
+
eflips_depot-4.14.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|