Skip to content

Commit 18149c8

Browse files
committed
Revise bug in find_biosphere_flows func
1 parent c65affc commit 18149c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

swolfpy/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def find_biosphere_flows(flow_name, compartment=None, subcompartment=None, exact
7474
act_dict = act.as_dict()
7575
if (exact_match and act_dict['name'] == flow_name) or (not exact_match and flow_name.lower() in act_dict['name'].lower()):
7676
if compartment and subcompartment:
77-
if act_dict['categories'] != (compartment, subcompartment):
77+
if act_dict['categories'] == (compartment, subcompartment):
7878
key.append(act.key)
7979
name.append(act_dict['name'])
8080
categories.append(act_dict['categories'])

0 commit comments

Comments
 (0)