Skip to content

Commit

Permalink
update data (net imports), appliance names, figures
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilakrych committed Aug 30, 2024
1 parent be38009 commit 42391ff
Show file tree
Hide file tree
Showing 6 changed files with 403 additions and 287 deletions.
2 changes: 1 addition & 1 deletion 1_preprocessing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"metadata": {},
"outputs": [],
"source": [
"durables = ['fridge & fridge freezer' ,'freezer','washing machine', 'tumble dryer', 'dishwasher', 'oven']\n",
"durables = ['fridges' ,'freezers','washing machines', 'tumble dryers', 'dishwashers', 'ovens']\n",
"TimeStart = 1940\n",
"TimeEnd = 2022\n",
"MyYears = list(range(TimeStart,TimeEnd+1))\n",
Expand Down
2 changes: 1 addition & 1 deletion 2_preliminary_analysis_global.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
"ModelClassification_app['Element'] = msc.Classification(Name= 'Elements', Dimension = 'Element', ID = 3, \n",
" Items = ['C'])\n",
"ModelClassification_app['Durable'] = msc.Classification(Name = 'Durable', Dimension = 'Durable', ID = 4, \n",
" Items = ['fridge & fridge freezer' ,'freezer','washing machine', 'tumble dryer', 'dishwasher', 'oven'])\n",
" Items = ['fridges' ,'freezers','washing machines', 'tumble dryers', 'dishwashers', 'ovens'])\n",
"ModelClassification_app['Run'] = msc.Classification(Name = 'Model run', Dimension = 'Run', ID = 5, \n",
" Items = [])\n",
"aspects = ['Time','Element','Cohort', 'Durable', 'Run']\n",
Expand Down
4 changes: 2 additions & 2 deletions 3a_analysis_constant.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
"ModelClassification_app['Element'] = msc.Classification(Name= 'Elements', Dimension = 'Element', ID = 3, \n",
" Items = ['C'])\n",
"ModelClassification_app['Durable'] = msc.Classification(Name = 'Durable', Dimension = 'Durable', ID = 4, \n",
" Items = ['fridge & fridge freezer' ,'freezer','washing machine', 'tumble dryer', 'dishwasher', 'oven'])\n",
" Items = ['fridges' ,'freezers','washing machines', 'tumble dryers', 'dishwashers', 'ovens'])\n",
"ModelClassification_app['Run'] = msc.Classification(Name = 'Model run', Dimension = 'Run', ID = 5, \n",
" Items = [])\n",
"aspects = ['Time','Element','Cohort', 'Durable', 'Run']\n",
Expand Down Expand Up @@ -296,7 +296,7 @@
"i_seg = {}\n",
"for d,durable in enumerate(ModelClassification_app['Durable'].Items):\n",
" y = Dyn_MFA_System.ParameterDict['I'].Values[:,d]\n",
" if durable in ['dishwasher', 'tumble dryer', 'freezer']:\n",
" if durable in ['dishwashers', 'tumble dryers', 'freezers']:\n",
" segs = [1970,1980,1990,2000,2010]\n",
" else:\n",
" segs = [1960,1970,1980,1990,2000,2010]\n",
Expand Down
10 changes: 5 additions & 5 deletions 3b_analysis_logistic.ipynb → 3b_analysis_variable.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# Notebook 3b - final analysis, logistic lifetime"
"# Notebook 3b - final analysis, variable lifetime"
]
},
{
Expand Down Expand Up @@ -232,7 +232,7 @@
"ModelClassification_app['Element'] = msc.Classification(Name= 'Elements', Dimension = 'Element', ID = 3, \n",
" Items = ['C'])\n",
"ModelClassification_app['Durable'] = msc.Classification(Name = 'Durable', Dimension = 'Durable', ID = 4, \n",
" Items = ['fridge & fridge freezer' ,'freezer','washing machine', 'tumble dryer', 'dishwasher', 'oven'])\n",
" Items = ['fridges' ,'freezers','washing machines', 'tumble dryers', 'dishwashers', 'ovens'])\n",
"ModelClassification_app['Run'] = msc.Classification(Name = 'Model run', Dimension = 'Run', ID = 5, \n",
" Items = [])\n",
"aspects = ['Time','Element','Cohort', 'Durable', 'Run']\n",
Expand All @@ -253,7 +253,7 @@
"metadata": {},
"outputs": [],
"source": [
"Dyn_MFA_System = msc.MFAsystem(Name = 'ApplianceSystem_logisticLT', \n",
"Dyn_MFA_System = msc.MFAsystem(Name = 'ApplianceSystem_variableLT', \n",
" Geogr_Scope = 'Norway', \n",
" Unit = '1', \n",
" ProcessList = [], \n",
Expand Down Expand Up @@ -303,7 +303,7 @@
"i_seg = {}\n",
"for d,durable in enumerate(ModelClassification_app['Durable'].Items):\n",
" y = Dyn_MFA_System.ParameterDict['I'].Values[:,d]\n",
" if durable in ['dishwasher', 'tumble dryer', 'freezer']:\n",
" if durable in ['dishwashers', 'tumble dryers', 'freezers']:\n",
" segs = [1970,1980,1990,2000,2010]\n",
" else:\n",
" segs = [1960,1970,1980,1990,2000,2010]\n",
Expand Down Expand Up @@ -484,7 +484,7 @@
"metadata": {},
"outputs": [],
"source": [
"with open(\"3b_analysis_logistic.dat\", \"wb\") as f:\n",
"with open(\"3b_analysis_variable.dat\", \"wb\") as f:\n",
" pickle.dump([Dyn_MFA_System, problem, param_values, no_of_runs], f)"
]
},
Expand Down
Loading

0 comments on commit 42391ff

Please sign in to comment.