Skip to content

Commit

Permalink
Update precalculated values
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed May 16, 2022
1 parent 1f2fa62 commit 5b286c2
Show file tree
Hide file tree
Showing 44 changed files with 2,754 additions and 2,713 deletions.
4,068 changes: 2,034 additions & 2,034 deletions carculator_truck/data/A_matrix.csv

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions carculator_truck/data/dict_impact_categories.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recipe;IPCC 2013;GWP100a;midpoint;GWP100;kg CO2-Eq.;https://www.ipcc.ch
recipe;ReCiPe 2008 Midpoint (H) V1.13;agricultural land occupation;midpoint;ALOP;square meter-year;https://www.rivm.nl/documenten/6recipe111
recipe;ReCiPe 2008 Midpoint (H) V1.13;ozone depletion;midpoint;ODPinf;kg CFC-11.;https://www.rivm.nl/documenten/6recipe111
recipe;ReCiPe 2008 Midpoint (H) V1.13;climate change;midpoint;GWP100;kg CO2-Eq.;https://www.rivm.nl/documenten/6recipe111
Expand Down
226 changes: 113 additions & 113 deletions carculator_truck/data/dict_inputs_A_matrix.csv

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions carculator_truck/data/dict_split.csv
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ components;glider;name;frame, blanks and saddle, for lorry
components;glider;name;suspension, for lorry
components;glider;name;cabin, for lorry
components;glider;name;tires and wheels, for lorry
components;glider;name;assembly operation
components;powertrain;name;market for charger, electric passenger car
components;powertrain;name;market for inverter, for electric passenger car
components;powertrain;name;market for converter, for electric passenger car
Expand Down
14 changes: 7 additions & 7 deletions carculator_truck/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ def get_B_matrix(self):
+ "/*recipe_midpoint*{}*.csv".format(self.scenario)
)
list_file_names = sorted(list_file_names)
B = np.zeros((len(list_file_names), 22, len(self.inputs)))
B = np.zeros((len(list_file_names), 23, len(self.inputs)))
elif self.method_type == "endpoint":
list_file_names = glob.glob(
str(REMIND_FILES_DIR)
Expand Down Expand Up @@ -1573,7 +1573,7 @@ def get_B_matrix(self):
)
)

new_B[0 : np.shape(initial_B)[0], 0 : np.shape(initial_B)[1]] = initial_B
new_B[0: np.shape(initial_B)[0], 0: np.shape(initial_B)[1]] = initial_B

B[f] = new_B

Expand Down Expand Up @@ -2914,10 +2914,10 @@ def create_fuel_dictionary(self):
},
"diesel": {
"name": (
"market group for diesel, low-sulfur",
"RER",
"market for diesel",
"Europe without Switzerland",
"kilogram",
"diesel, low-sulfur",
"diesel",
)
},
"biodiesel - algae": {
Expand Down Expand Up @@ -4315,7 +4315,7 @@ def set_inputs_in_A_matrix(self, array):
self.A[:, self.index_emissions, -self.number_of_cars :] = (
array[
[
self.array_inputs[self.map_non_fuel_emissions[self.rev_inputs[x]]]
self.array_inputs[self.map_fuel_emissions[self.rev_inputs[x]]]
for x in self.index_emissions
]
]
Expand Down Expand Up @@ -5882,7 +5882,7 @@ def set_inputs_in_A_matrix_for_export(self, array):
] = (
array[
[
self.array_inputs[self.map_non_fuel_emissions[self.rev_inputs[x]]]
self.array_inputs[self.map_fuel_emissions[self.rev_inputs[x]]]
for x in self.index_emissions
]
]
Expand Down

0 comments on commit 5b286c2

Please sign in to comment.