Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc committed Aug 26, 2023
1 parent ee4d80d commit 2244a53
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions paconvert/api_matcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -3889,11 +3889,12 @@ def generate_code(self, kwargs):
class LinalgSolveTriangularMatcher(BaseMatcher):
def generate_code(self, kwargs):
new_kwargs = {}
left = kwargs.pop("left").strip("(").strip(")")
if left == "True":
new_kwargs["transpose"] = "False"
if left == "False":
new_kwargs["transpose"] = "True"
if "left" in kwargs:
left = kwargs.pop("left").strip("(").strip(")")
if left == "True":
new_kwargs["transpose"] = "False"
if left == "False":
new_kwargs["transpose"] = "True"
new_kwargs.update(kwargs)
return GenericMatcher.generate_code(self, new_kwargs)

Expand Down

0 comments on commit 2244a53

Please sign in to comment.