-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
with switch for passing through or dropping not bridged columns
- Loading branch information
1 parent
6b5649e
commit 1fad0b2
Showing
8 changed files
with
450 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "60fd7d0e-a46e-4db0-8bbe-00256058ee71", | ||
"metadata": {}, | ||
"source": [ | ||
"# Convert and Characterize" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "850708b0-66c3-4ca8-a50b-f7396ec4c1a7", | ||
"metadata": {}, | ||
"source": [ | ||
"Pymrio contains several possibilities to convert data from one system to another." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "bde3cf89-6c36-47dd-b9d5-48433f4473b5", | ||
"metadata": {}, | ||
"source": [ | ||
"The term *convert* is meant very general here, it contains \n", | ||
" - finding and extracting data based on indicies across a table or an mrio(-extension) system based on name and potentially constrained by sector/region or any other specification\n", | ||
" - converting the names of the found indicies\n", | ||
" - adjusting the numerical values of the data, e.g. for unit conversion or characterisation\n", | ||
" - aggregating the extracted data, e.g. for the purpose of characterization" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"id": "74d2a195-5e5f-4798-9aa6-4136a4b84342", | ||
"metadata": {}, | ||
"outputs": [], | ||
"source": [] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.12.0" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# --- | ||
# jupyter: | ||
# jupytext: | ||
# text_representation: | ||
# extension: .py | ||
# format_name: percent | ||
# format_version: '1.3' | ||
# jupytext_version: 1.15.2 | ||
# kernelspec: | ||
# display_name: Python 3 (ipykernel) | ||
# language: python | ||
# name: python3 | ||
# --- | ||
|
||
# %% [markdown] | ||
# # Convert and Characterize | ||
|
||
# %% [markdown] | ||
# Pymrio contains several possibilities to convert data from one system to another. | ||
|
||
# %% [markdown] | ||
# The term *convert* is meant very general here, it contains | ||
# - finding and extracting data based on indicies across a table or an mrio(-extension) system based on name and potentially constrained by sector/region or any other specification | ||
# - converting the names of the found indicies | ||
# - adjusting the numerical values of the data, e.g. for unit conversion or characterisation | ||
# - aggregating the extracted data, e.g. for the purpose of characterization | ||
|
||
# %% [markdown] | ||
# Pymrio allows these convert function either on one specific table (which not necessaryly has to be a table of the mrio system) or on the whole mrio(-extension) system. | ||
|
||
# %% [markdown] | ||
# ## Structure of the bridge table | ||
|
||
|
||
# %% [markdown] | ||
# Irrespectively of the table or the mrio system, the convert function always follows the same pattern. | ||
# It requires a bridge table, which contains the mapping of the indicies of the source data to the indicies of the target data. | ||
# This bridge table has to follow a specific format, depending on the table to be converted. | ||
|
||
|
||
# %% [markdown] | ||
# Lets assume a table with the following structure (the table to be converted): | ||
|
||
# %% [markdown] | ||
# TODO: table from the test cases | ||
|
||
# %% [markdown] | ||
# A potential bridge table for this table could look like this: | ||
|
||
# %% [markdown] | ||
# TODO: table from the test cases | ||
|
||
# %% [markdown] | ||
# Describe the column names, and which entries can be regular expressions | ||
|
||
# %% [markdown] | ||
# Once everything is set up, we can continue with the actual conversion. | ||
|
||
# %% [markdown] | ||
# ## Converting a single data table | ||
|
||
|
||
# %% [markdown] | ||
# ## Converting a pymrio extension | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.