Skip to content

Commit 997f1b7

Browse files
committed
Renaming of output files and other minor adjustments
1 parent f209e4a commit 997f1b7

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

processing.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -275,23 +275,23 @@
275275
"title: National generation capacity\n",
276276
"description: Aggregated generation capacity by technology and country\n",
277277
"long_description: This data package comprises technology-specific aggregated generation capacities for European countries. The generation capacities are consistently categorized based on fuel and technology. For each European country, various references are used ranging from international (e.g. ENTSOE or EUROSTAT) to national sources from e.g. regulatory authorities. The input data is processed in the script linked below. \n",
278-
"version: \"2016-10-23\"\n",
278+
"version: \"2016-10-27\"\n",
279279
"keywords: \n",
280280
" - generation capacity\n",
281281
" - conventional generation\n",
282282
" - renewable generation\n",
283283
" - Europe\n",
284284
" - Open Power System Data\n",
285285
"homepage: http://data.open-power-system-data.org/national_generation_capacity/\n",
286-
"documentation: https://github.com/Open-Power-System-Data/national_generation_capacity/blob/2016-10-23/main.ipynb\n",
287-
"geographical_scope: 28 European countries\n",
288-
"last_changes: Revised technology classification, restructured input file format\n",
286+
"documentation: https://github.com/Open-Power-System-Data/national_generation_capacity/blob/2016-10-27/main.ipynb\n",
287+
"geographical-scope: 28 European countries\n",
288+
"last_changes: Revised technology classification, restructured input file format, adjusted input data to final version\n",
289289
"\n",
290290
"resources:\n",
291-
" - path: aggregated_capacity.xlsx\n",
291+
" - path: national_generation_capacity.xlsx\n",
292292
" format: xlsx\n",
293293
" mediatype: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n",
294-
" - path: aggregated_capacity_stacked.csv\n",
294+
" - path: national_generation_capacity_stacked.csv\n",
295295
" format: csv\n",
296296
" mediatype: text/csv\n",
297297
" schema: \n",
@@ -344,7 +344,7 @@
344344
" - name: technology_level\n",
345345
" description: Technology (aggregation or classification by fuel and technology)\n",
346346
" type: boolean\n",
347-
" - path: aggregated_capacity_stacked.xlsx\n",
347+
" - path: national_generation_capacity_stacked.xlsx\n",
348348
" format: xlsx\n",
349349
" mediatype: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n",
350350
" schema: \n",
@@ -504,17 +504,17 @@
504504
" os.path.join('output', 'original_data', data_file))\n",
505505
"\n",
506506
"# Write the result to file\n",
507-
"data.to_csv(os.path.join(output_path, 'aggregated_capacity_stacked.csv'), \n",
507+
"data.to_csv(os.path.join(output_path, 'national_generation_capacity_stacked.csv'), \n",
508508
" encoding='utf-8', index_label='ID')\n",
509509
"\n",
510510
"# Write the results to excel file\n",
511-
"data.to_excel(os.path.join(output_path, 'aggregated_capacity_stacked.xlsx'), \n",
511+
"data.to_excel(os.path.join(output_path, 'national_generation_capacity_stacked.xlsx'), \n",
512512
" sheet_name='output', index_label='ID')\n",
513513
"shutil.copy2(os.path.join('input', data_file), \n",
514-
" os.path.join('output', 'aggregated_capacity.xlsx'))\n",
514+
" os.path.join('output', 'national_generation_capacity.xlsx'))\n",
515515
"\n",
516516
"# Write the results to sql database\n",
517-
"data.to_sql('aggregated_capacity',\n",
517+
"data.to_sql('national_generation_capacity_stacked',\n",
518518
" sqlite3.connect(os.path.join(output_path, \n",
519519
" 'national_generation_capacity.sqlite')),\n",
520520
" if_exists=\"replace\",index_label='ID')\n",

0 commit comments

Comments
 (0)