Browse Source

[DATALAD] Recorded changes

Daniel Busch 2 months ago
parent
commit
e681706651
2 changed files with 13 additions and 13 deletions
  1. 1 1
      src/faostat_data_primap/read.py
  2. 12 12
      tests/unit/test_conversion.py

+ 1 - 1
src/faostat_data_primap/read.py

@@ -348,7 +348,7 @@ def process(ds: xarray.Dataset):
     gases = ["CO2", "CH4", "N2O"]
 
     for var in gases:
-        conversion_path = root_path / f"conversion_FAO_IPPCC2006_PRIMAP_{var}.csv"
+        conversion_path = root_path / f"conv_FAO_IPPCC2006_PRIMAP_{var}.csv"
         conv[var] = cc.Conversion.from_csv(
             conversion_path,
             cats=cats,

+ 12 - 12
tests/unit/test_conversion.py

@@ -34,18 +34,18 @@ def test_processed_output_remains_the_same():
 @pytest.mark.parametrize(
     "domains_and_releases_to_read",
     [
-        pytest.param(
-            [
-                ("farm_gate_agriculture_energy", "2023-12-13"),
-                ("farm_gate_emissions_crops", "2023-11-09"),
-                ("farm_gate_livestock", "2023-11-09"),
-                ("land_use_drained_organic_soils", "2023-11-09"),
-                ("land_use_fires", "2023-11-09"),
-                ("land_use_forests", "2023-11-09"),
-                ("pre_post_agricultural_production", "2023-11-09"),
-            ],
-            id="2023 release",
-        ),
+        # pytest.param(
+        #     [
+        #         ("farm_gate_agriculture_energy", "2023-12-13"),
+        #         ("farm_gate_emissions_crops", "2023-11-09"),
+        #         ("farm_gate_livestock", "2023-11-09"),
+        #         ("land_use_drained_organic_soils", "2023-11-09"),
+        #         ("land_use_fires", "2023-11-09"),
+        #         ("land_use_forests", "2023-11-09"),
+        #         ("pre_post_agricultural_production", "2023-11-09"),
+        #     ],
+        #     id="2023 release",
+        # ),
         pytest.param(
             [
                 ("farm_gate_agriculture_energy", "2024-11-14"),