Skip to content

Commit ceca6d3

Browse files
committed
Revert previous; correct rule_set value in ontobio-parse-assocs; for #558
1 parent f182777 commit ceca6d3

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

bin/ontobio-parse-assocs.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ def main():
132132
if args.gaferencer_file:
133133
gaferences = gaference.build_annotation_inferences(json.load(args.gaferencer_file))
134134

135+
rule_set = args.rule_set
136+
if rule_set == ["all"]:
137+
rule_set = assocparser.RuleSet.ALL
138+
135139
# set configuration
136140
filtered_evidence_file = open(args.filtered_file, "w") if args.filtered_file else None
137141
config = assocparser.AssocParserConfig(
@@ -144,7 +148,7 @@ def main():
144148
annotation_inferences=gaferences,
145149
paint=args.allow_paint,
146150
gpi_authority_path=args.gpi,
147-
rule_set=args.rule_set
151+
rule_set=rule_set
148152
)
149153
p = None
150154
fmt = None

ontobio/io/assocparser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def __init__(self,
265265
# print("Rule Set is {}".format(rule_set))
266266
if rule_set == None:
267267
self.rule_set = RuleSet([])
268-
elif rule_set == [RuleSet.ALL]:
268+
elif rule_set == RuleSet.ALL:
269269
# None here means all rules
270270
self.rule_set = RuleSet(None)
271271
else:

0 commit comments

Comments
 (0)