File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -198,12 +198,15 @@ def get_lca_input_flow_unit_or_product(
198
198
if act_exc ['reference product' ] == 'fuel' :
199
199
if 'cng' in act_exc ['name' ]:
200
200
name_list .append ('natural gas' )
201
+ elif 'methane' in act_exc ['name' ]:
202
+ name_list .append ('natural gas' )
201
203
elif 'diesel' in act_exc ['name' ]:
202
204
name_list .append ('diesel' )
203
205
elif 'hydrogen' in act_exc ['name' ]:
204
206
name_list .append ('hydrogen' )
205
207
else :
206
- raise ValueError (f'Unknown fuel type for flow { row .Flow } in { row .Name } ' )
208
+ raise ValueError (f'Unknown fuel type in carculator for flow { row .Flow } in { row .Name } : '
209
+ f'{ act_exc ["name" ]} ' )
207
210
else :
208
211
name_list .append (act_exc ['reference product' ].split (',' )[0 ])
209
212
unit_list .append (act_exc ['unit' ])
You can’t perform that action at this time.
0 commit comments