Skip to content
This repository was archived by the owner on Sep 7, 2023. It is now read-only.

Commit 6d85b96

Browse files
authored
Add option to enable inference tracing (typedb#189)
## What is the goal of this PR? We introduce a new option to allow tracing the internals of Grakn's reasoner. ## What are the changes implemented in this PR? - Adds a new option, the flag `traceInference`. Requires typedb/typedb-protocol#122
1 parent 2007225 commit 6d85b96

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

grakn/grakn_proto_builder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ def options(opts: Union[GraknOptions, GraknClusterOptions]):
2727
proto_options = options_proto.Options()
2828
if opts.infer is not None:
2929
proto_options.infer = opts.infer
30+
if opts.trace_inference is not None:
31+
proto_options.trace_inference = opts.trace_inference
3032
if opts.explain is not None:
3133
proto_options.explain = opts.explain
3234
if opts.batch_size is not None:

grakn/options.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class GraknOptions(ABC):
2424

2525
def __init__(self):
2626
self.infer: Optional[bool] = None
27+
self.trace_inference: Optional[bool] = None
2728
self.explain: Optional[bool] = None
2829
self.batch_size: Optional[int] = None
2930

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
## Dependencies
3131

3232
# IMPORTANT: Any changes to these dependencies should be copied to requirements_dev.txt.
33-
grakn-protocol==0.0.0-b63c9b9b5027d354107dc0c22f61d5f5aaa224ed
33+
grakn-protocol==0.0.0-7c78ea569d33324214c9867b4952d6d4c16c45df
3434
grpcio==1.35.0
3535
protobuf==3.14.0

requirements_dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
## Dependencies
3030

31-
grakn-protocol==0.0.0-b63c9b9b5027d354107dc0c22f61d5f5aaa224ed
31+
grakn-protocol==0.0.0-7c78ea569d33324214c9867b4952d6d4c16c45df
3232
grpcio==1.35.0
3333
protobuf==3.14.0
3434

0 commit comments

Comments
 (0)