-
Notifications
You must be signed in to change notification settings - Fork 4
/
dvc.yaml
469 lines (444 loc) · 14.3 KB
/
dvc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
stages:
parse_nrel118_buses:
desc: "Parse raw bus data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_buses.py
data/raw/nrel118/additional-files-mti-118/Buses.csv
data/parsed/nrel118_buses.csv
deps:
- data/raw/nrel118/additional-files-mti-118/Buses.csv
- src/data/parse/nrel118_buses.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/parsed/nrel118_buses.csv
parse_nrel118_lines:
desc: "Parse raw line data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_lines.py
data/raw/nrel118/additional-files-mti-118/Lines.csv
data/parsed/nrel118_lines.csv
deps:
- data/raw/nrel118/additional-files-mti-118/Lines.csv
- src/data/parse/nrel118_lines.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/parsed/nrel118_lines.csv
parse_jeas118_buses:
desc: "Parse raw bus data from the JEAS-118 dataset"
cmd:
- python src/data/parse/jeas118_buses.py
data/raw/jeas118/JEAS_IEEE118.docx
data/parsed/jeas118_buses.csv
deps:
- data/raw/jeas118/JEAS_IEEE118.docx
- src/data/parse/jeas118_buses.py
- src/utils/converters.py
outs:
- data/parsed/jeas118_buses.csv
parse_jeas118_lines:
desc: "Parse raw line data from the JEAS-118 dataset"
cmd:
- python src/data/parse/jeas118_lines.py
data/raw/jeas118/JEAS_IEEE118.docx
data/parsed/jeas118_lines.csv
deps:
- data/raw/jeas118/JEAS_IEEE118.docx
- src/data/parse/jeas118_lines.py
- src/utils/converters.py
outs:
- data/parsed/jeas118_lines.csv
parse_jeas118_trafos:
desc: "Parse raw transformer data from the JEAS-118 dataset"
cmd:
- python src/data/parse/jeas118_trafos.py
data/raw/jeas118/JEAS_IEEE118.docx
data/parsed/jeas118_trafos.csv
deps:
- data/raw/jeas118/JEAS_IEEE118.docx
- src/data/parse/jeas118_trafos.py
- src/utils/converters.py
outs:
- data/parsed/jeas118_trafos.csv
parse_jeas118_loads:
desc: "Parse raw load data from the JEAS-118 dataset"
cmd:
- python src/data/parse/jeas118_loads.py
data/raw/jeas118/JEAS_IEEE118.docx
data/parsed/jeas118_loads.csv
deps:
- data/raw/jeas118/JEAS_IEEE118.docx
- src/data/parse/jeas118_loads.py
- src/utils/converters.py
outs:
- data/parsed/jeas118_loads.csv
parse_nrel118_loads_ts:
desc: "Parse raw time-series load data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_loads_ts.py
"data/raw/nrel118/Input files/RT/Load"
data/parsed/nrel118_loads_ts.csv
deps:
- data/raw/nrel118/Input files/RT/Load
- src/data/parse/nrel118_loads_ts.py
- src/utils/data_loaders/load_ts_data.py
params:
- definitions.py:
- DATE_FORMAT
outs:
- data/parsed/nrel118_loads_ts.csv
parse_nrel118_gens:
desc: "Parse raw generation data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_gens.py
data/raw/nrel118/additional-files-mti-118/Generators.csv
data/parsed/nrel118_gens.csv
deps:
- data/raw/nrel118/additional-files-mti-118/Generators.csv
- src/data/parse/nrel118_gens.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- GEN_TYPES
outs:
- data/parsed/nrel118_gens.csv
parse_nrel118_escalators_ts:
desc: "Parse raw escalator time-series data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_escalators_ts.py
data/raw/nrel118/additional-files-mti-118/Escalators.csv
data/parsed/nrel118_escalators_ts.csv
deps:
- data/raw/nrel118/additional-files-mti-118/Escalators.csv
- src/data/parse/nrel118_escalators_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- GEN_TYPES
- DATE_FORMAT
outs:
- data/parsed/nrel118_escalators_ts.csv
parse_nrel118_hydros_nondisp_ts:
desc: "Parse raw non-dispatchable hydro plants data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_hydros_nondisp_ts.py
data/raw/nrel118/additional-files-mti-118/Hydro_nondipatchable.csv
data/parsed/nrel118_hydros_nondisp_ts.csv
deps:
- data/raw/nrel118/additional-files-mti-118/Hydro_nondipatchable.csv
- src/data/parse/nrel118_hydros_nondisp_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- GEN_TYPES
- DATE_FORMAT
outs:
- data/parsed/nrel118_hydros_nondisp_ts.csv
parse_nrel118_hydros_ts:
desc: "Parse raw time-series hydro gens data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_hydros_ts.py
"data/raw/nrel118/Input files/Hydro"
data/parsed/nrel118_hydros_ts.csv
deps:
- data/raw/nrel118/Input files/Hydro
- src/data/parse/nrel118_hydros_ts.py
- src/utils/data_loaders/load_ts_data.py
params:
- definitions.py:
- GEN_TYPES
- DATE_FORMAT
outs:
- data/parsed/nrel118_hydros_ts.csv
parse_nrel118_solars_ts:
desc: "Parse raw time-series solar gens data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_solars_ts.py
"data/raw/nrel118/Input files/RT/Solar"
data/parsed/nrel118_solars_ts.csv
deps:
- data/raw/nrel118/Input files/RT/Solar
- src/data/parse/nrel118_solars_ts.py
- src/utils/data_loaders/load_ts_data.py
params:
- definitions.py:
- GEN_TYPES
- DATE_FORMAT
outs:
- data/parsed/nrel118_solars_ts.csv
parse_nrel118_winds_ts:
desc: "Parse raw time-series wind gens data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_winds_ts.py
"data/raw/nrel118/Input files/RT/Wind"
data/parsed/nrel118_winds_ts.csv
deps:
- data/raw/nrel118/Input files/RT/Wind
- src/data/parse/nrel118_winds_ts.py
- src/utils/data_loaders/load_ts_data.py
params:
- definitions.py:
- GEN_TYPES
- DATE_FORMAT
outs:
- data/parsed/nrel118_winds_ts.csv
parse_nrel118_outages_ts:
desc: "Parse raw time-series outage data from the NREL-118 dataset"
cmd:
- python src/data/parse/nrel118_outages_ts.py
"data/raw/nrel118/Input files/Others/GenOut.csv"
data/parsed/nrel118_outages_ts.csv
deps:
- data/raw/nrel118/Input files/Others/GenOut.csv
- src/data/parse/nrel118_outages_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- GEN_TYPES
- DATE_FORMAT
outs:
- data/parsed/nrel118_outages_ts.csv
transform_loads:
desc: "Combine necessary load variables for the preparation stage"
cmd:
- python src/data/transform/loads.py
data/parsed/nrel118_buses.csv
data/parsed/jeas118_loads.csv
data/transformed/loads.csv
deps:
- data/parsed/nrel118_buses.csv
- data/parsed/jeas118_loads.csv
- src/data/transform/loads.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/transformed/loads.csv
transform_gens:
desc: "Combine necessary gen variables for preparation stages"
cmd:
- python src/data/transform/gens.py
data/parsed/nrel118_gens.csv
data/prepared/buses.csv
data/transformed/gens.csv
deps:
- data/parsed/nrel118_gens.csv
- data/prepared/buses.csv
- src/data/transform/gens.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/transformed/gens.csv
transform_outages_ts:
desc: "Modify dataset with outages"
cmd:
- python src/data/transform/outages_ts.py
data/parsed/nrel118_outages_ts.csv
data/transformed/outages_ts.csv
deps:
- data/parsed/nrel118_outages_ts.csv
- src/data/transform/outages_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- DATE_FORMAT
outs:
- data/transformed/outages_ts.csv
transform_gens_escalated_ts:
desc: "Combine gen output limits and escalator values"
cmd:
- python src/data/transform/gens_escalated_ts.py
data/transformed/gens.csv
data/parsed/nrel118_escalators_ts.csv
data/transformed/gens_escalated_ts.csv
deps:
- data/transformed/gens.csv
- data/parsed/nrel118_escalators_ts.csv
- src/data/transform/gens_escalated_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- DATE_FORMAT
outs:
- data/transformed/gens_escalated_ts.csv
transform_gens_ts:
desc: "Concat generation time-series data"
cmd:
- python src/data/transform/gens_ts.py
data/transformed/gens.csv
data/parsed/nrel118_winds_ts.csv
data/parsed/nrel118_solars_ts.csv
data/parsed/nrel118_hydros_ts.csv
data/parsed/nrel118_hydros_nondisp_ts.csv
data/transformed/gens_ts.csv
deps:
- data/transformed/gens.csv
- data/parsed/nrel118_winds_ts.csv
- data/parsed/nrel118_solars_ts.csv
- data/parsed/nrel118_hydros_ts.csv
- data/parsed/nrel118_hydros_nondisp_ts.csv
- src/data/transform/gens_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- DATE_FORMAT
outs:
- data/transformed/gens_ts.csv
prepare_buses:
desc: "Build final bus dataset"
cmd:
- python src/data/prepare/buses.py
data/parsed/nrel118_buses.csv
data/parsed/jeas118_buses.csv
data/raw/manual/bus_coordinates.csv
data/prepared/buses.csv
- python src/data/check/buses.py
data/prepared/buses.csv
deps:
- data/parsed/nrel118_buses.csv
- data/parsed/jeas118_buses.csv
- data/raw/manual/bus_coordinates.csv
- src/data/prepare/buses.py
- src/data/check/buses.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/prepared/buses.csv
prepare_branches:
desc: "Build final dataset with line and transformer info"
cmd:
- python src/data/prepare/branches.py
data/parsed/nrel118_lines.csv
data/parsed/jeas118_lines.csv
data/parsed/jeas118_trafos.csv
data/prepared/buses.csv
data/prepared/branches.csv
- python src/data/check/branches.py
data/prepared/branches.csv
data/prepared/buses.csv
deps:
- data/parsed/nrel118_lines.csv
- data/parsed/jeas118_lines.csv
- data/parsed/jeas118_trafos.csv
- data/prepared/buses.csv
- src/data/prepare/branches.py
- src/data/check/branches.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- S_BASE_MVA
outs:
- data/prepared/branches.csv
prepare_loads:
desc: "Build final dataset with load info"
cmd:
- python src/data/prepare/loads.py
data/transformed/loads.csv
data/prepared/loads.csv
- python src/data/check/loads.py
data/prepared/loads.csv
data/prepared/buses.csv
deps:
- data/transformed/loads.csv
- data/prepared/buses.csv
- src/data/prepare/loads.py
- src/data/check/loads.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/prepared/loads.csv
prepare_loads_ts:
desc: "Build final dataset with load time-series data"
cmd:
- python src/data/prepare/loads_ts.py
data/transformed/loads.csv
data/parsed/nrel118_loads_ts.csv
data/prepared/loads_ts.csv
- python src/data/check/loads_ts.py
data/prepared/loads_ts.csv
data/prepared/loads.csv
deps:
- data/prepared/loads.csv
- data/transformed/loads.csv
- data/parsed/nrel118_loads_ts.csv
- src/data/prepare/loads_ts.py
- src/data/check/loads_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- DATE_FORMAT
- DATE_RANGE
- FILL_METHOD
outs:
- data/prepared/loads_ts.csv
prepare_gens:
desc: "Build final dataset with generation info"
cmd:
- python src/data/prepare/gens.py
data/transformed/gens.csv
data/prepared/gens_ts.csv
data/prepared/gens.csv
- python src/data/check/gens.py
data/prepared/gens.csv
data/prepared/buses.csv
- python src/data/check/gens_ts.py
data/prepared/gens_ts.csv
data/prepared/gens.csv
deps:
- data/prepared/buses.csv
- data/prepared/gens_ts.csv
- data/transformed/gens.csv
- src/data/prepare/gens.py
- src/data/check/gens.py
- src/data/check/gens_ts.py
- src/utils/data_loaders/load_df_data.py
outs:
- data/prepared/gens.csv
prepare_gens_ts:
desc: "Build final dataset with generation time-series data"
cmd:
- python src/data/prepare/gens_ts.py
data/transformed/gens.csv
data/transformed/gens_ts.csv
data/transformed/gens_escalated_ts.csv
data/transformed/outages_ts.csv
data/prepared/gens_ts.csv
deps:
- data/transformed/gens.csv
- data/transformed/gens_ts.csv
- data/transformed/gens_escalated_ts.csv
- data/transformed/outages_ts.csv
- src/data/prepare/gens_ts.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- DATE_FORMAT
- DATE_RANGE
- FILL_METHOD
outs:
- data/prepared/gens_ts.csv
build:
desc: "Start building power flow cases"
cmd:
- python src/power_flow/building.py
data/prepared/buses.csv
data/prepared/branches.csv
data/prepared/loads.csv
data/prepared/loads_ts.csv
data/prepared/gens.csv
data/prepared/gens_ts.csv
samples
deps:
- data/prepared/buses.csv
- data/prepared/branches.csv
- data/prepared/loads.csv
- data/prepared/loads_ts.csv
- data/prepared/gens.csv
- data/prepared/gens_ts.csv
- src/power_flow/building.py
- src/power_flow/builders/base.py
- src/power_flow/builders/pandapower.py
- src/utils/data_loaders/load_df_data.py
params:
- definitions.py:
- S_BASE_MVA
- F_HZ
- POWER_FLOW_ENGINE
- DATE_FORMAT
- SAMPLE_NAME_FORMAT
outs:
- samples