Skip to content

Commit

Permalink
Merge pull request allfed#29 from florianjehn/main
Browse files Browse the repository at this point in the history
Adding some minor stuff
  • Loading branch information
florianjehn authored Feb 7, 2024
2 parents df09085 + 7f6ad7d commit c4d04bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
4 changes: 2 additions & 2 deletions scripts/ISIMIP_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@
"text": [
"Loaded data for Wheat in Y2018.\n",
"Removed 0 countries with no trade or production.\n",
"Prebalanced trade matrix.\n",
"Corrected re-exports.\n"
"Prebalanced trade matrix.\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Corrected re-exports.\n",
"Removed 133 countries from the trade matrix.\n",
"Removed countries with trade below the 75th percentile.\n",
"Applied scenario ISIMIP.\n",
Expand Down
1 change: 0 additions & 1 deletion src/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import networkx as nx
import matplotlib.pyplot as plt
import os
import sys
import geopandas as gpd
import country_converter as coco
from matplotlib.colors import ListedColormap
Expand Down
9 changes: 0 additions & 9 deletions tests/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,7 @@ def get_pytradeshifts_after_reexport(**kwargs) -> PyTradeShifts:
("crop", "base_year", "region"),
[
("Wheat", 2018, "Global"),
("Wheat", 2018, "Oceania"),
("Maize", 2018, "Global"),
("Rice", 2018, "Global"),
("Wheat", 2021, "Global"),
("Rice", 2021, "Global"),
("Maize", 2021, "Global"),
],
)
class TestGeneralPyTradeShifts:
Expand Down Expand Up @@ -106,12 +101,8 @@ def test_build_graph(self, crop: str, base_year: int, region: str) -> None:
("beta"),
[
(0.0),
(2.0),
(-2.0),
(-1.0),
(1.0),
(-0.01),
(0.01),
],
)
def test_apply_distance_cost(
Expand Down

0 comments on commit c4d04bd

Please sign in to comment.