diff --git a/ptxboa/data/dim_process.csv b/ptxboa/data/dim_process.csv index b02f5810..b5b67802 100644 --- a/ptxboa/data/dim_process.csv +++ b/ptxboa/data/dim_process.csv @@ -21,8 +21,8 @@ Green iron reduction,DRI,DRI-S,H2-G,True,False,False,False,PROC,False,False,Fals Green iron ship,DRI-S,DRI-S,DRI-S,False,False,True,False,TRANSP-S,False,True,False,False,ProcessTransportShip,Transportation (Ship) Green iron ship (bunker fuel consumption),DRI-SB,DRI-S,DRI-S,False,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportShip,Transportation (Ship),BFUEL-L FT e-fuels Synthesis (Fischer-Tropsch),EFUELSYN,CHX-L,H2-G,True,False,False,False,PROC,False,False,False,True,ProcessDerivate,Derivate production,H2O-L/CO2-G/EL/HEAT/N2-G -electricity storage,EL-STR,EL,EL,False,False,True,False,PROC,False,True,False,False,ProcessDerivate,Derivate production,H2O-L/CO2-G/EL/HEAT/N2-G -electricity transmission,EL-TRANS,EL,EL,False,False,True,False,TRANSP,False,True,False,False,ProcessPassthrough +electricity storage,EL-STR,EL,EL,False,False,True,False,PROC,False,True,False,False,ProcessDerivate,Electrolysis,H2O-L/CO2-G/EL/HEAT/N2-G +electricity transmission,EL-TRANS,EL,EL,False,False,True,False,TRANSP,False,True,False,False,ProcessPassthrough,Electrolysis Hydrogen compression,H2-COMP,H2-G,H2-G,True,False,True,False,TRANSP-P,False,False,False,False,ProcessTransportPrePost,Transportation (Pipeline),HEAT/EL Hydrogen Liquification,H2-LIQ,H2-L,H2-G,True,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportPrePost,Transportation (Ship),HEAT/EL Hydrogen land pipeline new,H2-P-L,H2-G,H2-G,False,False,True,False,TRANSP-P,False,False,False,False,ProcessTransportPipeline,Transportation (Pipeline) @@ -37,7 +37,7 @@ LOHC conversion,LOHC-CON,LOHC-L,H2-G,True,False,True,False,TRANSP-S,False,False, LOHC reconversion,LOHC-REC,H2-G,LOHC-L,True,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportPrePost,Transportation (Ship),HEAT/EL LOHC ship (own fuel consumption),LOHC-S,LOHC-L,LOHC-L,False,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportShip,Transportation (Ship) LOHC ship (bunker fuel consumption),LOHC-SB,LOHC-L,LOHC-L,False,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportShip,Transportation (Ship),BFUEL-L -Ammonia reconversion,NH3-REC,H2-G,NH3-L,True,False,True,False,TRANSP,False,False,False,False,ProcessPassthrough +Ammonia reconversion,NH3-REC,H2-G,NH3-L,True,False,True,False,TRANSP,False,False,False,False,ProcessPassthrough,Transportation (Ship) Ammonia ship (own fuel consumption),NH3-S,NH3-L,NH3-L,False,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportShip,Transportation (Ship) Ammonia ship (bunker fuel consumption),NH3-SB,NH3-L,NH3-L,False,False,True,False,TRANSP-S,False,False,False,False,ProcessTransportShip,Transportation (Ship),BFUEL-L Ammonia Synthesis (Haber-Bosch),NH3SYN,NH3-L,H2-G,True,False,False,False,PROC,False,False,False,True,ProcessDerivate,Derivate production,H2O-L/CO2-G/EL/HEAT/N2-G diff --git a/tests/test_api.py b/tests/test_api.py index 8278db22..36547fde 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -46,6 +46,24 @@ def _test_api_call(self, settings): return res + def test_issue_145_undefined_cost_category(self): + """See https://github.com/agoenergy/ptx-boa/issues/145.""" + settings = { + "region": "United Arab Emirates", + "country": "Germany", + "chain": "Ammonia (AEL) + reconv. to H2", + "res_gen": "PV tilted", + "scenario": "2040 (medium)", + "secproc_co2": "Direct Air Capture", + "secproc_water": "Sea Water desalination", + "transport": "Ship", + "ship_own_fuel": False, + "output_unit": "USD/t", + } + res = self._test_api_call(settings) + level_cost_category = res.index.levels[0] + self.assertFalse("" in level_cost_category, "empty value in cost_category") + def test_example_api_call_1_ship(self): """Test output structure of api.calculate().""" settings = {