Skip to content

Commit

Permalink
Adapt get methods accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardo-rodrigues committed Jul 21, 2023
1 parent 3200efc commit 0e8b23a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/decaylanguage/dec/dec.py
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ def get_charge_conjugate_decays(parsed_file: Tree) -> list[str]:

try:
return sorted(
tree.children[0].children[0].value
tree.children[0].value
for tree in parsed_file.find_data("cdecay")
)
except Exception as err:
Expand Down Expand Up @@ -1485,7 +1485,7 @@ def get_aliases(parsed_file: Tree) -> dict[str, str]:
"""
try:
return {
tree.children[0].children[0].value: tree.children[1].children[0].value
tree.children[0].value: tree.children[1].value
for tree in parsed_file.find_data("alias")
}
except Exception as err:
Expand Down

0 comments on commit 0e8b23a

Please sign in to comment.