Skip to content

Commit

Permalink
Officially ignore constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkwang committed Aug 18, 2021
1 parent 524030d commit 4a20383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions binder/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_edge_constraints(
"""Get edge constraints."""
kwargs = dict()
for key, value in qedge.items():
if key in ("subject", "object"):
if key in ("subject", "object", "constraints"):
continue
if isinstance(value, list) and len(value) == 1:
value = value[0]
Expand All @@ -191,7 +191,7 @@ def get_edge_constraints(
kwargs[f"edge.{KEY_MAP.get(key, key)}"] = value
for role in ("subject", "object"):
for key, value in qgraph["nodes"][qedge[role]].items():
if key in ():
if key in ("constraints"):
continue
if isinstance(value, list) and len(value) == 1:
value = value[0]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="binder",
version="4.2.3",
version="4.2.4",
author="Patrick Wang",
author_email="[email protected]",
url="https://github.com/TranslatorSRI/binder",
Expand Down

0 comments on commit 4a20383

Please sign in to comment.