Skip to content

Commit 38156b7

Browse files
committed
added "fuel supply for methane vehicles"
1 parent 64a1389 commit 38156b7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mescal/adapt_efficiency.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,12 +198,15 @@ def get_lca_input_flow_unit_or_product(
198198
if act_exc['reference product'] == 'fuel':
199199
if 'cng' in act_exc['name']:
200200
name_list.append('natural gas')
201+
elif 'methane' in act_exc['name']:
202+
name_list.append('natural gas')
201203
elif 'diesel' in act_exc['name']:
202204
name_list.append('diesel')
203205
elif 'hydrogen' in act_exc['name']:
204206
name_list.append('hydrogen')
205207
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"]}')
207210
else:
208211
name_list.append(act_exc['reference product'].split(',')[0])
209212
unit_list.append(act_exc['unit'])

0 commit comments

Comments
 (0)