Skip to content

Commit

Permalink
Add assembly electricity
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Aug 19, 2024
1 parent 8555902 commit 0caf2be
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions carculator_truck/inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ def fill_in_A_matrix(self):
:attr:`array` from :class:`CarModel` class
"""

# Assembly
self.A[
:,
self.find_input_indices(("assembly operation, for lorry",)),
self.find_input_indices(("Truck, ",)),
] = (
self.array.sel(parameter="curb mass") * -1
)

# Glider/Frame
self.A[
:,
Expand Down
2 changes: 1 addition & 1 deletion dev/test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.0"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
Binary file removed inventories/lci-Car-db_for_REMIND_trucks.xlsx
Binary file not shown.
Binary file removed inventories/lci-Car-db_for_ei_37_trucks.xlsx
Binary file not shown.

0 comments on commit 0caf2be

Please sign in to comment.