Skip to content

Commit

Permalink
Removed uneccsary files
Browse files Browse the repository at this point in the history
  • Loading branch information
florianjehn committed Jan 23, 2024
1 parent d0aef9c commit 5ae9ab3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 54 deletions.
28 changes: 0 additions & 28 deletions mkdocs.yml

This file was deleted.

24 changes: 0 additions & 24 deletions mkgendocs.yml

This file was deleted.

7 changes: 5 additions & 2 deletions src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,11 @@ def remove_countries_except(self):
keep = [
country for country in self.trade_matrix.index if country in self.countries_to_keep
]
self.trade_matrix = self.trade_matrix.loc[keep, keep]
# TODO make this behaviour consistent with remove_countries
self.trade_matrix = self.trade_matrix.loc[keep, :]
# Now also remove the columns from the trade matrix which have no trade anymore
col_sums = self.trade_matrix.sum(axis=0)
b_filter = ~(col_sums.eq(0))
self.trade_matrix = self.trade_matrix.loc[:, b_filter]

self.production_data = self.production_data.loc[keep]

Expand Down

0 comments on commit 5ae9ab3

Please sign in to comment.